Cleanup PendingWriteQueueTest
Motivation: PendingWriteQueueTest needs some cleanup. Modifications: - Cleanup code to remove deprecation warnings - use static imports Result: No more warnings
This commit is contained in:
parent
99dfc9ea79
commit
bd61b96efa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user