@Test public void testAMINoException() { MyHandler handler = new MyHandler(); ((_BugJac560ServiceStub) server).sendc_exc(handler._this(setup.getClientOrb()), false); assertTrue(handler.isDone(TestUtils.getMediumTimeout())); assertNull(handler.getException(0)); }
@Test public void testAMIWithException() { MyHandler handler = new MyHandler(); ((_BugJac560ServiceStub) server).sendc_exc(handler._this(setup.getClientOrb()), true); assertTrue(handler.isDone(TestUtils.getMediumTimeout())); final Exception exception = handler.getException(0); assertEquals(xNoSuchDefault.class, exception.getClass()); }