From bd61b96efa277d6c69df7c605298980e95f3c3f8 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 7 Oct 2015 10:35:12 +0200 Subject: [PATCH] Cleanup PendingWriteQueueTest Motivation: PendingWriteQueueTest needs some cleanup. Modifications: - Cleanup code to remove deprecation warnings - use static imports Result: No more warnings --- .../src/test/java/io/netty/channel/PendingWriteQueueTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java b/transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java index d243ce647a..5b773e2c40 100644 --- a/transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java +++ b/transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java @@ -196,7 +196,7 @@ public class PendingWriteQueueTest { @Test public void testRemoveAndFailAllReentrance() { - EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter()); + EmbeddedChannel channel = new EmbeddedChannel(); final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext()); ChannelPromise promise = channel.newPromise(); @@ -218,7 +218,7 @@ public class PendingWriteQueueTest { @Test public void testRemoveAndWriteAllReentrance() { - EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter()); + EmbeddedChannel channel = new EmbeddedChannel(); final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext()); ChannelPromise promise = channel.newPromise();