55
66package io .opentelemetry .instrumentation .jaxrs ;
77
8- import static io .opentelemetry .instrumentation .testing .junit .code .SemconvCodeStabilityUtil .codeFunctionInfixAssertions ;
8+ import static io .opentelemetry .instrumentation .testing .junit .code .SemconvCodeStabilityUtil .codeFunctionSuffixAssertions ;
99import static io .opentelemetry .instrumentation .testing .junit .http .ServerEndpoint .SUCCESS ;
1010import static io .opentelemetry .sdk .testing .assertj .OpenTelemetryAssertions .equalTo ;
1111import static java .util .concurrent .TimeUnit .SECONDS ;
@@ -190,7 +190,7 @@ void shouldHandleAsyncResponse(AsyncResponseTestKind testKind) throws Exception
190190 testKind .assertBody (response .contentUtf8 ());
191191
192192 List <AttributeAssertion > attributeAssertions =
193- codeFunctionInfixAssertions ("test.JaxRsTestResource" , "asyncOp" );
193+ codeFunctionSuffixAssertions ("test.JaxRsTestResource" , "asyncOp" );
194194
195195 if (testKind == AsyncResponseTestKind .CANCELED ) {
196196 attributeAssertions .add (equalTo (AttributeKey .booleanKey ("jaxrs.canceled" ), true ));
@@ -300,7 +300,7 @@ void shouldHandleCompletionStage(CompletionStageTestKind testKind) throws Except
300300 .hasKind (SpanKind .INTERNAL )
301301 .hasParent (trace .getSpan (0 ))
302302 .hasAttributesSatisfyingExactly (
303- codeFunctionInfixAssertions (".JaxRsTestResource" , "jaxRs21Async" ));
303+ codeFunctionSuffixAssertions (".JaxRsTestResource" , "jaxRs21Async" ));
304304 if (testKind == CompletionStageTestKind .FAILING ) {
305305 span .hasStatus (StatusData .error ())
306306 .hasException (new IllegalStateException ("failure" ));
@@ -315,6 +315,6 @@ protected SpanDataAssert assertHandlerSpan(
315315 return span .hasName ("JaxRsTestResource." + methodName )
316316 .hasKind (SpanKind .INTERNAL )
317317 .hasAttributesSatisfyingExactly (
318- codeFunctionInfixAssertions (".JaxRsTestResource" , methodName ));
318+ codeFunctionSuffixAssertions (".JaxRsTestResource" , methodName ));
319319 }
320320}
0 commit comments