@Test public void constructors_throw_exception_if_passed_null_operator() { final Deque<Span> spanStackMock = mock(Deque.class); final Map<String, String> mdcInfoMock = mock(Map.class); assertThat(catchThrowable(() -> new FailureCallbackWithTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new FailureCallbackWithTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new FailureCallbackWithTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); }
public static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback) { return new FailureCallbackWithTracing(origFailureCallback); }
FailureCallbackWithTracing implements FailureCallback { public static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback) { return new FailureCallbackWithTracing(origFailureCallback); } }
FailureCallbackWithTracing implements FailureCallback { public static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback) { return new FailureCallbackWithTracing(origFailureCallback); } FailureCallbackWithTracing(FailureCallback origFailureCallback);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); }
FailureCallbackWithTracing implements FailureCallback { public static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback) { return new FailureCallbackWithTracing(origFailureCallback); } FailureCallbackWithTracing(FailureCallback origFailureCallback);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void onFailure(Throwable ex); }
FailureCallbackWithTracing implements FailureCallback { public static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback) { return new FailureCallbackWithTracing(origFailureCallback); } FailureCallbackWithTracing(FailureCallback origFailureCallback);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  FailureCallbackWithTracing(FailureCallback origFailureCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static FailureCallbackWithTracing withTracing(FailureCallback origFailureCallback,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void onFailure(Throwable ex);  }