diff --git a/src/test/java/org/jboss/netty/channel/CompleteChannelFutureTest.java b/src/test/java/org/jboss/netty/channel/CompleteChannelFutureTest.java index ee4b901c77..a7fe779bee 100644 --- a/src/test/java/org/jboss/netty/channel/CompleteChannelFutureTest.java +++ b/src/test/java/org/jboss/netty/channel/CompleteChannelFutureTest.java @@ -68,7 +68,7 @@ public class CompleteChannelFutureTest { ChannelFutureListener l = new ChannelFutureListener() { public void operationComplete(ChannelFuture future) throws Exception { - throw new Exception(); + throw new ExpectedError(); } }; @@ -112,4 +112,12 @@ public class CompleteChannelFutureTest { throw new Error(); } } + + private static class ExpectedError extends Error { + private static final long serialVersionUID = 7059276744882005047L; + + ExpectedError() { + super(); + } + } }