@DataProvider(value = { "true", "false" }) @Test public void pair_constructor_sets_fields_as_expected_when_pair_is_null(boolean useStaticFactory) { FailureCallbackWithTracing instance = (useStaticFactory) ? withTracing(failureCallbackMock, (Pair)null) : new FailureCallbackWithTracing(failureCallbackMock, (Pair)null); assertThat(instance.origFailureCallback).isSameAs(failureCallbackMock); assertThat(instance.spanStackForExecution).isNull(); assertThat(instance.mdcContextMapForExecution).isNull(); }
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);  }