diff --git a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/event/CustomSpanEventTest.java b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/event/CustomSpanEventTest.java index 9906383dfe6e..be1e33c4c454 100644 --- a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/event/CustomSpanEventTest.java +++ b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/event/CustomSpanEventTest.java @@ -12,7 +12,6 @@ import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; import io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.runner.JobRunner; import io.opentelemetry.sdk.testing.assertj.TraceAssert; -import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -73,7 +72,6 @@ void shouldBeAbleToCallSpanCurrentAndAddCustomInfoToSpans() { .hasParent(trace.getSpan(1)) .satisfies( spanData -> { - // CompositeChunkListener has broken ordering that causes // listeners that do not override order() to appear first at all // times @@ -86,7 +84,7 @@ void shouldBeAbleToCallSpanCurrentAndAddCustomInfoToSpans() { event -> event.hasName("chunk.before"), event -> event.hasName("chunk.after")); } else { - Assertions.assertThat(spanData.getEvents()).isEmpty(); + assertThat(spanData.getEvents()).isEmpty(); } }), span -> {}, // ignore diff --git a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java index 03ecf368644a..8027900435fb 100644 --- a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java +++ b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java @@ -161,7 +161,7 @@ public void shouldTraceItemReadProcessAndWriteCalls() { } @Override - void shouldTraceAllItemOperationsOnAParallelItemsJob() { + void shouldTraceAllItemOperationsOnAparallelItemsJob() { // does not work - not sure why } }