@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 PredicateWithTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new PredicateWithTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, Pair.of(spanStackMock, mdcInfoMock)))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> new PredicateWithTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(() -> withTracing(null, spanStackMock, mdcInfoMock))) .isInstanceOf(IllegalArgumentException.class); }
public static <T> PredicateWithTracing<T> withTracing(Predicate<T> origPredicate) { return new PredicateWithTracing<>(origPredicate); }
PredicateWithTracing implements Predicate<T> { public static <T> PredicateWithTracing<T> withTracing(Predicate<T> origPredicate) { return new PredicateWithTracing<>(origPredicate); } }
PredicateWithTracing implements Predicate<T> { public static <T> PredicateWithTracing<T> withTracing(Predicate<T> origPredicate) { return new PredicateWithTracing<>(origPredicate); } PredicateWithTracing(Predicate<T> origPredicate);  PredicateWithTracing(Predicate<T> origPredicate,
                                Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  PredicateWithTracing(Predicate<T> origPredicate,
                                Deque<Span> spanStackForExecution,
                                Map<String, String> mdcContextMapForExecution); }
PredicateWithTracing implements Predicate<T> { public static <T> PredicateWithTracing<T> withTracing(Predicate<T> origPredicate) { return new PredicateWithTracing<>(origPredicate); } PredicateWithTracing(Predicate<T> origPredicate);  PredicateWithTracing(Predicate<T> origPredicate,
                                Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  PredicateWithTracing(Predicate<T> origPredicate,
                                Deque<Span> spanStackForExecution,
                                Map<String, String> mdcContextMapForExecution); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate,
                                                          Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate,
                                                          Deque<Span> spanStackForExecution,
                                                          Map<String, String> mdcContextMapForExecution); @Override boolean test(T o); }
PredicateWithTracing implements Predicate<T> { public static <T> PredicateWithTracing<T> withTracing(Predicate<T> origPredicate) { return new PredicateWithTracing<>(origPredicate); } PredicateWithTracing(Predicate<T> origPredicate);  PredicateWithTracing(Predicate<T> origPredicate,
                                Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  PredicateWithTracing(Predicate<T> origPredicate,
                                Deque<Span> spanStackForExecution,
                                Map<String, String> mdcContextMapForExecution); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate,
                                                          Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static PredicateWithTracing<T> withTracing(Predicate<T> origPredicate,
                                                          Deque<Span> spanStackForExecution,
                                                          Map<String, String> mdcContextMapForExecution); @Override boolean test(T o);  }