@Override public DriverInternalError copy() { return new DriverInternalError(getMessage(), this); } }
/** Tests DriverInternalError. Tests basic message, rethrow, and copy abilities. */ @Test(groups = "unit") public void driverInternalError() throws Exception { String errorMessage = "Test Message"; try { throw new DriverInternalError(errorMessage); } catch (DriverInternalError e1) { try { throw new DriverInternalError(e1); } catch (DriverInternalError e2) { assertTrue(e2.getMessage().contains(errorMessage)); DriverInternalError copy = (DriverInternalError) e2.copy(); assertEquals(copy.getMessage(), e2.getMessage()); } } }
@Override public DriverInternalError copy() { return new DriverInternalError(getMessage(), this); } }
@Override public DriverInternalError copy() { return new DriverInternalError(getMessage(), this); } }
@Override public DriverInternalError copy() { return new DriverInternalError(getMessage(), this); } }
@Override public DriverException copy() { return new DriverInternalError(getMessage(), this); } }
/** Tests DriverInternalError. Tests basic message, rethrow, and copy abilities. */ @Test(groups = "unit") public void driverInternalError() throws Exception { String errorMessage = "Test Message"; try { throw new DriverInternalError(errorMessage); } catch (DriverInternalError e1) { try { throw new DriverInternalError(e1); } catch (DriverInternalError e2) { assertTrue(e2.getMessage().contains(errorMessage)); DriverInternalError copy = (DriverInternalError) e2.copy(); assertEquals(copy.getMessage(), e2.getMessage()); } } }