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:
Norman Maurer 2015-10-07 10:35:12 +02:00
parent 81a913ced1
commit 2d7e957a23

View File

@ -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();