Used ExpectedError instead of Exception to tell that the failure is expected obviously
This commit is contained in:
parent
9aed1addb1
commit
c5a211e07a
@ -68,7 +68,7 @@ public class CompleteChannelFutureTest {
|
|||||||
ChannelFutureListener l = new ChannelFutureListener() {
|
ChannelFutureListener l = new ChannelFutureListener() {
|
||||||
public void operationComplete(ChannelFuture future)
|
public void operationComplete(ChannelFuture future)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
throw new Exception();
|
throw new ExpectedError();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -112,4 +112,12 @@ public class CompleteChannelFutureTest {
|
|||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static class ExpectedError extends Error {
|
||||||
|
private static final long serialVersionUID = 7059276744882005047L;
|
||||||
|
|
||||||
|
ExpectedError() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user