01: package net.sf.mockcreator;
02:
03: import net.sf.mockcreator.exceptions.*;
04:
05: public class BugCatchExceptionTest extends TestCase {
06: MockVoidVoid mock = new MockVoidVoid();
07:
08: public void testCatchException() throws Exception {
09: try {
10: mock.voidMethod();
11: fail();
12: } catch (Exception ex) {
13: fail("MockException shouldn't be catchable");
14: } catch (MockException ex) {
15: // ok
16: }
17: }
18: }
|