@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_trace_retrieval_exception() { TraceRetrievalException e = new TraceRetrievalException("Couldn't find any trace of it"); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); e = (TraceRetrievalException) e.copy(); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); }
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Override public DriverException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_trace_retrieval_exception() { TraceRetrievalException e = new TraceRetrievalException("Couldn't find any trace of it"); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); e = (TraceRetrievalException) e.copy(); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); }