@DataProvider(value = { "true", "false" }) @Test public void pair_constructor_sets_fields_as_expected_when_pair_is_null(boolean useStaticFactory) { BiFunctionWithTracing instance = (useStaticFactory) ? withTracing(biFunctionMock, (Pair)null) : new BiFunctionWithTracing(biFunctionMock, (Pair)null); assertThat(instance.origBiFunction).isSameAs(biFunctionMock); assertThat(instance.spanStackForExecution).isNull(); assertThat(instance.mdcContextMapForExecution).isNull(); }
public static <T, U, R> BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction) { return new BiFunctionWithTracing<>(origBiFunction); }
BiFunctionWithTracing implements BiFunction<T, U, R> { public static <T, U, R> BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction) { return new BiFunctionWithTracing<>(origBiFunction); } }
BiFunctionWithTracing implements BiFunction<T, U, R> { public static <T, U, R> BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction) { return new BiFunctionWithTracing<>(origBiFunction); } BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Deque<Span> spanStackForExecution,
                                 Map<String, String> mdcContextMapForExecution); }
BiFunctionWithTracing implements BiFunction<T, U, R> { public static <T, U, R> BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction) { return new BiFunctionWithTracing<>(origBiFunction); } BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Deque<Span> spanStackForExecution,
                                 Map<String, String> mdcContextMapForExecution); static BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction); static BiFunctionWithTracing<T, U, R> withTracing(
        BiFunction<T, U, R> origBiFunction,
        Pair<Deque<Span>, Map<String, String>> originalThreadInfo
    ); static BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction,
                                                                       Deque<Span> spanStackForExecution,
                                                                       Map<String, String> mdcContextMapForExecution); @Override R apply(T t, U u); }
BiFunctionWithTracing implements BiFunction<T, U, R> { public static <T, U, R> BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction) { return new BiFunctionWithTracing<>(origBiFunction); } BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiFunctionWithTracing(BiFunction<T, U, R> origBiFunction,
                                 Deque<Span> spanStackForExecution,
                                 Map<String, String> mdcContextMapForExecution); static BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction); static BiFunctionWithTracing<T, U, R> withTracing(
        BiFunction<T, U, R> origBiFunction,
        Pair<Deque<Span>, Map<String, String>> originalThreadInfo
    ); static BiFunctionWithTracing<T, U, R> withTracing(BiFunction<T, U, R> origBiFunction,
                                                                       Deque<Span> spanStackForExecution,
                                                                       Map<String, String> mdcContextMapForExecution); @Override R apply(T t, U u);  }