@Override public TruncateException copy() { return new TruncateException(getAddress(), getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_truncate_exception() { TruncateException e = new TruncateException(address1, "I'm running headless now"); assertThat(e.getMessage()).isEqualTo("I'm running headless now"); assertThat(e.getAddress()).isEqualTo(address1); assertThat(e.getHost()).isEqualTo(address1.getAddress()); e = (TruncateException) e.copy(); assertThat(e.getMessage()).isEqualTo("I'm running headless now"); assertThat(e.getAddress()).isEqualTo(address1); assertThat(e.getHost()).isEqualTo(address1.getAddress()); }
@Override public DriverException copy() { return new TruncateException(getMessage(), this); } }
@Override public TruncateException copy() { return new TruncateException(getAddress(), getMessage(), this); } }
@Override public TruncateException copy() { return new TruncateException(getAddress(), getMessage(), this); } }
@Override public TruncateException copy() { return new TruncateException(getAddress(), getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_truncate_exception() { TruncateException e = new TruncateException(address1, "I'm running headless now"); assertThat(e.getMessage()).isEqualTo("I'm running headless now"); assertThat(e.getAddress()).isEqualTo(address1); assertThat(e.getHost()).isEqualTo(address1.getAddress()); e = (TruncateException) e.copy(); assertThat(e.getMessage()).isEqualTo("I'm running headless now"); assertThat(e.getAddress()).isEqualTo(address1); assertThat(e.getHost()).isEqualTo(address1.getAddress()); }