@DataProvider(value = { "true", "false" }) @Test public void kitchen_sink_constructor_sets_fields_as_expected(boolean useStaticFactory) { Deque<Span> spanStackMock = mock(Deque.class); Map<String, String> mdcInfoMock = mock(Map.class); BiPredicateWithTracing instance = (useStaticFactory) ? withTracing(biPredicateMock, spanStackMock, mdcInfoMock) : new BiPredicateWithTracing(biPredicateMock, spanStackMock, mdcInfoMock); assertThat(instance.origBiPredicate).isSameAs(biPredicateMock); assertThat(instance.spanStackForExecution).isEqualTo(spanStackMock); assertThat(instance.mdcContextMapForExecution).isEqualTo(mdcInfoMock); }
public static <T, U> BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate) { return new BiPredicateWithTracing<>(origBiPredicate); }
BiPredicateWithTracing implements BiPredicate<T, U> { public static <T, U> BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate) { return new BiPredicateWithTracing<>(origBiPredicate); } }
BiPredicateWithTracing implements BiPredicate<T, U> { public static <T, U> BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate) { return new BiPredicateWithTracing<>(origBiPredicate); } BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Deque<Span> spanStackForExecution,
                                  Map<String, String> mdcContextMapForExecution); }
BiPredicateWithTracing implements BiPredicate<T, U> { public static <T, U> BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate) { return new BiPredicateWithTracing<>(origBiPredicate); } BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Deque<Span> spanStackForExecution,
                                  Map<String, String> mdcContextMapForExecution); static BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate); static BiPredicateWithTracing<T, U> withTracing(
        BiPredicate<T, U> origBiPredicate,
        Pair<Deque<Span>, Map<String, String>> originalThreadInfo
    ); static BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate,
                                                                  Deque<Span> spanStackForExecution,
                                                                  Map<String, String> mdcContextMapForExecution); @Override boolean test(T t, U u); }
BiPredicateWithTracing implements BiPredicate<T, U> { public static <T, U> BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate) { return new BiPredicateWithTracing<>(origBiPredicate); } BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  BiPredicateWithTracing(BiPredicate<T, U> origBiPredicate,
                                  Deque<Span> spanStackForExecution,
                                  Map<String, String> mdcContextMapForExecution); static BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate); static BiPredicateWithTracing<T, U> withTracing(
        BiPredicate<T, U> origBiPredicate,
        Pair<Deque<Span>, Map<String, String>> originalThreadInfo
    ); static BiPredicateWithTracing<T, U> withTracing(BiPredicate<T, U> origBiPredicate,
                                                                  Deque<Span> spanStackForExecution,
                                                                  Map<String, String> mdcContextMapForExecution); @Override boolean test(T t, U u);  }