@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 BiPredicateWithTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new BiPredicateWithTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new BiPredicateWithTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); }
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);  }