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
|
@Test
|
||||||
public void testRemoveAndFailAllReentrance() {
|
public void testRemoveAndFailAllReentrance() {
|
||||||
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter());
|
EmbeddedChannel channel = new EmbeddedChannel();
|
||||||
final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext());
|
final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext());
|
||||||
|
|
||||||
ChannelPromise promise = channel.newPromise();
|
ChannelPromise promise = channel.newPromise();
|
||||||
@ -218,7 +218,7 @@ public class PendingWriteQueueTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRemoveAndWriteAllReentrance() {
|
public void testRemoveAndWriteAllReentrance() {
|
||||||
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInboundHandlerAdapter());
|
EmbeddedChannel channel = new EmbeddedChannel();
|
||||||
final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext());
|
final PendingWriteQueue queue = new PendingWriteQueue(channel.pipeline().firstContext());
|
||||||
|
|
||||||
ChannelPromise promise = channel.newPromise();
|
ChannelPromise promise = channel.newPromise();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user