@Test(expected = ValueRequiredException.class) public void testCounterViaRemoteInterface() throws Exception { Object object = initialContext.lookup("ThrowBusinessExceptionImplRemote"); Assert.assertNotNull(object); Assert.assertTrue(object instanceof ThrowBusinessException); ThrowBusinessException bean = (ThrowBusinessException) object; bean.throwValueRequiredException(); }
public void throwValueRequiredException() throws BusinessException { throw new ValueRequiredException(); }
ThrowBusinessExceptionImpl implements ThrowBusinessException { public void throwValueRequiredException() throws BusinessException { throw new ValueRequiredException(); } }
ThrowBusinessExceptionImpl implements ThrowBusinessException { public void throwValueRequiredException() throws BusinessException { throw new ValueRequiredException(); }  }
ThrowBusinessExceptionImpl implements ThrowBusinessException { public void throwValueRequiredException() throws BusinessException { throw new ValueRequiredException(); }  void throwValueRequiredException(); }
ThrowBusinessExceptionImpl implements ThrowBusinessException { public void throwValueRequiredException() throws BusinessException { throw new ValueRequiredException(); }  void throwValueRequiredException();  }