@@ -17,7 +17,7 @@ public interface AsyncAssert
17
17
/**
18
18
* Awaits until all assertions are passed or timeout is exceeded.
19
19
* Assertions are configured in lambda consumer of {@link SoftAssertions} object on each check.
20
- * The checks are executed periodically with check interval delay configured with {@link AsyncAssert#withWaitInterval } method.
20
+ * The checks are executed periodically with check interval delay configured with {@link AsyncAssert#withCheckInterval } method.
21
21
* After exceeding timeout {@link AssertionError} will be thrown with failures from last assertion check.
22
22
*
23
23
* <pre><code class='java'>
@@ -27,14 +27,14 @@ public interface AsyncAssert
27
27
* });
28
28
* </code></pre>
29
29
*
30
- * @param assertionsConfiguerer lambda consumer configuring {@link SoftAssertions} object
30
+ * @param assertionsConfigurer lambda consumer configuring {@link SoftAssertions} object
31
31
*/
32
- void untilAssertions (Consumer <SoftAssertions > assertionsConfiguerer );
32
+ void untilAssertions (Consumer <SoftAssertions > assertionsConfigurer );
33
33
34
34
/**
35
35
* Configures assertion to use give mutex object for check interval wait logic.
36
36
*
37
- * In multi-threaded applications, the mutex object can be used to notify the other thread about state change.
37
+ * In multi-thread applications, the mutex object can be used to notify the other thread about state change.
38
38
* For asynchronous assertion, the mutex object can be used to reduce the wait time between checks with {@link Object#notifyAll()} call.
39
39
*
40
40
* @param waitMutex mutex object
@@ -56,11 +56,11 @@ public interface AsyncAssert
56
56
* The interval must be greater than zero and lower than timeout.
57
57
*
58
58
* @param checkInterval check interval
59
- * @param unit the time unit of the check interval
59
+ * @param timeUnit the time unit of the check interval
60
60
* @return new {@link AsyncAssert} with set check interval
61
61
*/
62
- default AsyncAssert withCheckInterval (final long checkInterval , @ NonNull final TimeUnit unit )
62
+ default AsyncAssert withCheckInterval (final long checkInterval , @ NonNull final TimeUnit timeUnit )
63
63
{
64
- return withCheckInterval (Duration .ofMillis (unit .toMillis (checkInterval )));
64
+ return withCheckInterval (Duration .ofMillis (timeUnit .toMillis (checkInterval )));
65
65
}
66
66
}
0 commit comments