From 7d04136734b2d97cf234b356a56c48f3c6738ff8 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Mon, 3 Mar 2014 01:21:50 +0100 Subject: [PATCH] Added asserts to make sure ChannelHandlers are removed from the pipeline --- .../test/java/io/netty/channel/DefaultChannelPipelineTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java b/transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java index c0824451fb..c1bb346e90 100644 --- a/transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java +++ b/transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java @@ -149,8 +149,11 @@ public class DefaultChannelPipelineTest { assertSame(pipeline.get("handler3"), handler3); pipeline.remove(handler1); + assertNull(pipeline.get("handler1")); pipeline.remove(handler2); + assertNull(pipeline.get("handler2")); pipeline.remove(handler3); + assertNull(pipeline.get("handler3")); } @Test