|
6 | 6 | package io.opentelemetry.test.annotation;
|
7 | 7 |
|
8 | 8 | import static io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions.assertThat;
|
9 |
| -import static org.assertj.core.api.Assertions.assertThat; |
10 | 9 | import static org.assertj.core.api.Assertions.entry;
|
11 | 10 |
|
12 | 11 | import io.opentelemetry.api.common.AttributeKey;
|
@@ -158,7 +157,7 @@ void excludedMethod() throws Exception {
|
158 | 157 | new TracedWithSpan().ignored();
|
159 | 158 |
|
160 | 159 | Thread.sleep(500); // sleep a bit just to make sure no span is captured
|
161 |
| - assertThat(testing.waitForTraces(0)); |
| 160 | + assertThat(testing.waitForTraces(0)).isEmpty(); |
162 | 161 | }
|
163 | 162 |
|
164 | 163 | @Test
|
@@ -253,7 +252,7 @@ void completingCompletionStage() throws Exception {
|
253 | 252 | new TracedWithSpan().completionStage(future);
|
254 | 253 |
|
255 | 254 | Thread.sleep(500); // sleep a bit just to make sure no span is captured
|
256 |
| - assertThat(testing.waitForTraces(0)); |
| 255 | + assertThat(testing.waitForTraces(0)).isEmpty(); |
257 | 256 |
|
258 | 257 | future.complete("Done");
|
259 | 258 |
|
@@ -286,7 +285,7 @@ void exceptionallyCompletingCompletionStage() throws Exception {
|
286 | 285 | new TracedWithSpan().completionStage(future);
|
287 | 286 |
|
288 | 287 | Thread.sleep(500); // sleep a bit just to make sure no span is captured
|
289 |
| - assertThat(testing.waitForTraces(0)); |
| 288 | + assertThat(testing.waitForTraces(0)).isEmpty(); |
290 | 289 |
|
291 | 290 | future.completeExceptionally(new IllegalArgumentException("Boom"));
|
292 | 291 |
|
@@ -405,7 +404,7 @@ void completingCompletableFuture() throws Exception {
|
405 | 404 | new TracedWithSpan().completableFuture(future);
|
406 | 405 |
|
407 | 406 | Thread.sleep(500); // sleep a bit just to make sure no span is captured
|
408 |
| - assertThat(testing.waitForTraces(0)); |
| 407 | + assertThat(testing.waitForTraces(0)).isEmpty(); |
409 | 408 |
|
410 | 409 | future.complete("Done");
|
411 | 410 |
|
@@ -438,7 +437,7 @@ void exceptionallyCompletingCompletableFuture() throws Exception {
|
438 | 437 | new TracedWithSpan().completableFuture(future);
|
439 | 438 |
|
440 | 439 | Thread.sleep(500); // sleep a bit just to make sure no span is captured
|
441 |
| - assertThat(testing.waitForTraces(0)); |
| 440 | + assertThat(testing.waitForTraces(0)).isEmpty(); |
442 | 441 |
|
443 | 442 | future.completeExceptionally(new IllegalArgumentException("Boom"));
|
444 | 443 |
|
|
0 commit comments