diff --git a/dd-java-agent/instrumentation/netty-4.1/src/test/groovy/Netty41ClientTest.groovy b/dd-java-agent/instrumentation/netty-4.1/src/test/groovy/Netty41ClientTest.groovy index 7b73eeb586..99ccbe3fd5 100644 --- a/dd-java-agent/instrumentation/netty-4.1/src/test/groovy/Netty41ClientTest.groovy +++ b/dd-java-agent/instrumentation/netty-4.1/src/test/groovy/Netty41ClientTest.groovy @@ -105,7 +105,7 @@ class Netty41ClientTest extends HttpClientTest { then: // The first one returns the removed tracing handler - pipeline.remove(HttpClientTracingHandler.class.getName()) != null + pipeline.remove(HttpClientTracingHandler.getName()) != null } def "when a handler is added to the netty pipeline we add ONLY ONE tracing handler"() { @@ -116,9 +116,9 @@ class Netty41ClientTest extends HttpClientTest { when: pipeline.addLast("name", new HttpClientCodec()) // The first one returns the removed tracing handler - pipeline.remove(HttpClientTracingHandler.class.getName()) + pipeline.remove(HttpClientTracingHandler.getName()) // There is only one - pipeline.remove(HttpClientTracingHandler.class.getName()) == null + pipeline.remove(HttpClientTracingHandler.getName()) == null then: thrown NoSuchElementException @@ -135,7 +135,7 @@ class Netty41ClientTest extends HttpClientTest { then: // The first one returns the removed tracing handler - null != pipeline.remove(HttpClientTracingHandler.class.getName()) + null != pipeline.remove(HttpClientTracingHandler.getName()) null != pipeline.remove("some_handler") null != pipeline.remove("a_traced_handler") } @@ -164,7 +164,7 @@ class Netty41ClientTest extends HttpClientTest { then: null != channel.pipeline().remove("added_in_initializer") - null != channel.pipeline().remove(HttpClientTracingHandler.class.getName()) + null != channel.pipeline().remove(HttpClientTracingHandler.getName()) } class SimpleHandler implements ChannelHandler {