From c5a211e07a648cf3e822e8e9afc5fa61a5e84d69 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 8 Nov 2008 11:59:23 +0000 Subject: [PATCH] Used ExpectedError instead of Exception to tell that the failure is expected obviously --- .../jboss/netty/channel/CompleteChannelFutureTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); + } + } }