@DataProvider(value = { "true", "false" }) @Test public void pair_constructor_sets_fields_as_expected_when_pair_is_null(boolean useStaticFactory) { SuccessCallbackWithTracing instance = (useStaticFactory) ? withTracing(successCallbackMock, (Pair)null) : new SuccessCallbackWithTracing(successCallbackMock, (Pair)null); assertThat(instance.origSuccessCallback).isSameAs(successCallbackMock); assertThat(instance.spanStackForExecution).isNull(); assertThat(instance.mdcContextMapForExecution).isNull(); }
public static <T> SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback) { return new SuccessCallbackWithTracing<>(origSuccessCallback); }
SuccessCallbackWithTracing implements SuccessCallback<T> { public static <T> SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback) { return new SuccessCallbackWithTracing<>(origSuccessCallback); } }
SuccessCallbackWithTracing implements SuccessCallback<T> { public static <T> SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback) { return new SuccessCallbackWithTracing<>(origSuccessCallback); } SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); }
SuccessCallbackWithTracing implements SuccessCallback<T> { public static <T> SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback) { return new SuccessCallbackWithTracing<>(origSuccessCallback); } SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void onSuccess(T result); }
SuccessCallbackWithTracing implements SuccessCallback<T> { public static <T> SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback) { return new SuccessCallbackWithTracing<>(origSuccessCallback); } SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SuccessCallbackWithTracing(SuccessCallback<T> origSuccessCallback,
                                      Deque<Span> spanStackForExecution,
                                      Map<String, String> mdcContextMapForExecution); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static SuccessCallbackWithTracing<T> withTracing(SuccessCallback<T> origSuccessCallback,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void onSuccess(T result);  }