File tree 2 files changed +0
-35
lines changed
main/java/io/vertx/junit5
test/java/io/vertx/junit5/tests
2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -183,24 +183,6 @@ public synchronized Checkpoint checkpoint(int requiredNumberOfPasses) {
183
183
184
184
// ........................................................................................... //
185
185
186
- /**
187
- * Create an asynchronous result handler that expects a success.
188
- *
189
- * @param <T> the asynchronous result type.
190
- * @return the handler.
191
- * @deprecated Use {@link #succeedingThenComplete()} or {@link #succeeding(Handler)}, for example
192
- * <code>succeeding(value -> checkpoint.flag())</code>, <code>succeeding(value -> { more testing code })</code>, or
193
- * <code>succeeding(value -> {})</code>.
194
- */
195
- @ Deprecated
196
- public <T > Handler <AsyncResult <T >> succeeding () {
197
- return ar -> {
198
- if (!ar .succeeded ()) {
199
- failNow (ar .cause ());
200
- }
201
- };
202
- }
203
-
204
186
/**
205
187
* Create an asynchronous result handler that expects a success, and passes the value to another handler.
206
188
*
Original file line number Diff line number Diff line change @@ -44,23 +44,6 @@ void fail_with_null() {
44
44
.hasMessage ("The exception cannot be null" );
45
45
}
46
46
47
- @ Test
48
- @ DisplayName ("Check the behavior of succeeding() and that it does not complete the test context" )
49
- void check_async_assert () throws InterruptedException {
50
- VertxTestContext context = new VertxTestContext ();
51
- context .succeeding ().handle (Future .succeededFuture ());
52
- assertThat (context .awaitCompletion (1 , TimeUnit .MILLISECONDS )).isFalse ();
53
- assertThat (context .completed ()).isFalse ();
54
-
55
- context = new VertxTestContext ();
56
- context .succeeding ().handle (Future .failedFuture (new RuntimeException ("Plop" )));
57
- assertThat (context .awaitCompletion (1 , TimeUnit .MILLISECONDS )).isTrue ();
58
- assertThat (context .failed ()).isTrue ();
59
- assertThat (context .causeOfFailure ())
60
- .isInstanceOf (RuntimeException .class )
61
- .hasMessage ("Plop" );
62
- }
63
-
64
47
@ Test
65
48
@ DisplayName ("Check the behavior of failing()" )
66
49
void check_async_assert_fail () throws InterruptedException {
You can’t perform that action at this time.
0 commit comments