Added asserts to make sure ChannelHandlers are removed from the pipeline
This commit is contained in:
parent
392dd288b1
commit
7d04136734
@ -149,8 +149,11 @@ public class DefaultChannelPipelineTest {
|
|||||||
assertSame(pipeline.get("handler3"), handler3);
|
assertSame(pipeline.get("handler3"), handler3);
|
||||||
|
|
||||||
pipeline.remove(handler1);
|
pipeline.remove(handler1);
|
||||||
|
assertNull(pipeline.get("handler1"));
|
||||||
pipeline.remove(handler2);
|
pipeline.remove(handler2);
|
||||||
|
assertNull(pipeline.get("handler2"));
|
||||||
pipeline.remove(handler3);
|
pipeline.remove(handler3);
|
||||||
|
assertNull(pipeline.get("handler3"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user