From 917c205f3834336f1a7553d80e02fe7d4c9c795f Mon Sep 17 00:00:00 2001 From: danieldisu Date: Mon, 17 May 2021 08:28:57 +0200 Subject: [PATCH] Implemented PR suggestions --- .../com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt | 2 +- .../spain/barista/rule/flaky/FlakyStatementBuilderTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt b/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt index 71f028c3..335afbaa 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt +++ b/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt @@ -35,7 +35,7 @@ class FlakyTestRule : TestRule { * Use this method when constructing the Rule to apply a default behavior of @[Repeat] without having to add the annotation to * each test. This can help you to find flaky tests. *

- * The default behavior can be overridden with [Repeat] or [Repeat]. + * The default behavior can be overridden with [Repeat] or [AllowFlaky]. */ fun repeatAttemptsByDefault(defaultAttempts: Int): FlakyTestRule { flakyStatementBuilder.setRepeatAttemptsByDefault(defaultAttempts) diff --git a/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java b/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java index d32bcb47..1e7816ba 100644 --- a/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java +++ b/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java @@ -45,7 +45,7 @@ public void repeatStatementReturnedWhenRepeatAnnotationFound() throws Exception } @Test - public void repeatStatementReturnedWhenRepeatSetRepeatAttemptsByDefault() throws Exception { + public void repeatStatementReturnedWhenSettingDefaultRepeatAttempts() throws Exception { Statement baseStatement = new SomeStatement(); Description description = Description.EMPTY; @@ -75,7 +75,7 @@ public void allowFlakyStatementReturnedWhenNoAnnotationsFoundButUsesDefault() th } @Test - public void lastStatementReturnedWhenRepeatAttemptsByDefaultAndAllowFlakyStatementUsedAtTheSameTime() throws Exception { + public void lastStatementReturnedWhenDefaultRepeatAttemptsAndAllowFlakyStatementUsedAtTheSameTime() throws Exception { Statement baseStatement = new SomeStatement(); Description description = Description.EMPTY;