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
81a913ced1
commit
2d7e957a23
|
@ -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