Skip to content

Commit def53a3

Browse files
jakubmalekJakub Malek
authored andcommitted
Typos
1 parent d0026c3 commit def53a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/webfleet/assertj/AsyncAssert.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface AsyncAssert
1717
/**
1818
* Awaits until all assertions are passed or timeout is exceeded.
1919
* 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.
2121
* After exceeding timeout {@link AssertionError} will be thrown with failures from last assertion check.
2222
*
2323
* <pre><code class='java'>
@@ -27,14 +27,14 @@ public interface AsyncAssert
2727
* });
2828
* </code></pre>
2929
*
30-
* @param assertionsConfiguerer lambda consumer configuring {@link SoftAssertions} object
30+
* @param assertionsConfigurer lambda consumer configuring {@link SoftAssertions} object
3131
*/
32-
void untilAssertions(Consumer<SoftAssertions> assertionsConfiguerer);
32+
void untilAssertions(Consumer<SoftAssertions> assertionsConfigurer);
3333

3434
/**
3535
* Configures assertion to use give mutex object for check interval wait logic.
3636
*
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.
3838
* For asynchronous assertion, the mutex object can be used to reduce the wait time between checks with {@link Object#notifyAll()} call.
3939
*
4040
* @param waitMutex mutex object
@@ -56,11 +56,11 @@ public interface AsyncAssert
5656
* The interval must be greater than zero and lower than timeout.
5757
*
5858
* @param checkInterval check interval
59-
* @param unit the time unit of the check interval
59+
* @param timeUnit the time unit of the check interval
6060
* @return new {@link AsyncAssert} with set check interval
6161
*/
62-
default AsyncAssert withCheckInterval(final long checkInterval, @NonNull final TimeUnit unit)
62+
default AsyncAssert withCheckInterval(final long checkInterval, @NonNull final TimeUnit timeUnit)
6363
{
64-
return withCheckInterval(Duration.ofMillis(unit.toMillis(checkInterval)));
64+
return withCheckInterval(Duration.ofMillis(timeUnit.toMillis(checkInterval)));
6565
}
6666
}

0 commit comments

Comments
 (0)