Remove redundant .class suffixes in groovy test files

This commit is contained in:
Luca Abbati 2019-06-24 17:18:05 +02:00
parent d58c252085
commit 8022d0e170
No known key found for this signature in database
GPG Key ID: 74DBB952D9BA17F2
1 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ class Netty41ClientTest extends HttpClientTest<NettyHttpClientDecorator> {
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<NettyHttpClientDecorator> {
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<NettyHttpClientDecorator> {
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<NettyHttpClientDecorator> {
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 {