@@ -22,7 +22,7 @@ class AsyncAssertAwaitConfigTest
22
22
void shouldThrowExceptionOnCreationWithNullTimeout ()
23
23
{
24
24
// when
25
- final var caughtException = catchThrowable (() -> AsyncAssertAwaiConfig .withTimeout (null ));
25
+ final var caughtException = catchThrowable (() -> AsyncAssertAwaitConfig .withTimeout (null ));
26
26
27
27
// then
28
28
assertThat (caughtException )
@@ -35,7 +35,7 @@ void shouldThrowExceptionOnCreationWithNullTimeout()
35
35
void shouldThrowExceptionOnCreationWithNegativeOrZeroTimeout (final Duration timeout )
36
36
{
37
37
// when
38
- final var caughtException = catchThrowable (() -> AsyncAssertAwaiConfig .withTimeout (timeout ));
38
+ final var caughtException = catchThrowable (() -> AsyncAssertAwaitConfig .withTimeout (timeout ));
39
39
40
40
// then
41
41
assertThat (caughtException )
@@ -66,7 +66,7 @@ void shouldComputeInitialCheckIntervalBasedOnTimeout(final Duration timeout,
66
66
final SoftAssertions softly )
67
67
{
68
68
// when
69
- final var tested = AsyncAssertAwaiConfig .withTimeout (timeout );
69
+ final var tested = AsyncAssertAwaitConfig .withTimeout (timeout );
70
70
71
71
// then
72
72
softly .assertThat (tested .checkInterval ()).isEqualTo (expectedCheckInterval );
@@ -87,7 +87,7 @@ void shouldReturnAsyncAssertAwaitConfigWithChangedWaitInterval(final Duration ti
87
87
final SoftAssertions softly )
88
88
{
89
89
// given
90
- final var tested = AsyncAssertAwaiConfig .withTimeout (timeout );
90
+ final var tested = AsyncAssertAwaitConfig .withTimeout (timeout );
91
91
92
92
// when
93
93
final var withWaitInterval = tested .withCheckInterval (waitInterval );
@@ -122,7 +122,7 @@ void shouldShortenCheckIntervalWhenAddedToElapsedTimeExceedsTimeout(final Durati
122
122
final Duration expectedCheckInterval )
123
123
{
124
124
// given
125
- final var config = AsyncAssertAwaiConfig .withTimeout (timeout )
125
+ final var config = AsyncAssertAwaitConfig .withTimeout (timeout )
126
126
.withCheckInterval (configuredCheckInterval );
127
127
final ElapsedTime elapsedTime = () -> elapsedTimeDuration ;
128
128
@@ -138,7 +138,7 @@ void shouldThrowExceptionWhenChangedCheckIntervalIsGreaterThanTimeout()
138
138
{
139
139
// given
140
140
final var timeout = Duration .ofSeconds (5 );
141
- final var tested = AsyncAssertAwaiConfig .withTimeout (timeout );
141
+ final var tested = AsyncAssertAwaitConfig .withTimeout (timeout );
142
142
143
143
// when
144
144
final var caughtException = catchThrowable (() -> tested .withCheckInterval (timeout .plusMillis (1 )));
@@ -154,7 +154,7 @@ void shouldThrowExceptionWhenChangedCheckIntervalIsGreaterThanTimeout()
154
154
void shouldThrowExceptionWhenChangedCheckIntervalIsNegativeOrZero (final Duration checkInterval )
155
155
{
156
156
// given
157
- final var tested = AsyncAssertAwaiConfig .withTimeout (Duration .ofSeconds (1L ));
157
+ final var tested = AsyncAssertAwaitConfig .withTimeout (Duration .ofSeconds (1L ));
158
158
159
159
// when
160
160
final var caughtException = catchThrowable (() -> tested .withCheckInterval (checkInterval ));
@@ -169,7 +169,7 @@ void shouldThrowExceptionWhenChangedCheckIntervalIsNegativeOrZero(final Duration
169
169
void shouldThrowExceptionWhenChangedCheckIntervalIsNull ()
170
170
{
171
171
// given
172
- final var tested = AsyncAssertAwaiConfig .withTimeout (Duration .ofSeconds (1L ));
172
+ final var tested = AsyncAssertAwaitConfig .withTimeout (Duration .ofSeconds (1L ));
173
173
174
174
// when
175
175
final var caughtException = catchThrowable (() -> tested .withCheckInterval (null ));
0 commit comments