@DataProvider(value = { "true", "false" }) @Test public void pair_constructor_sets_fields_as_expected_when_pair_is_null(boolean useStaticFactory) { ConsumerWithTracing instance = (useStaticFactory) ? withTracing(consumerMock, (Pair)null) : new ConsumerWithTracing(consumerMock, (Pair)null); assertThat(instance.origConsumer).isSameAs(consumerMock); assertThat(instance.spanStackForExecution).isNull(); assertThat(instance.mdcContextMapForExecution).isNull(); }
public static <T> ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer) { return new ConsumerWithTracing<>(origConsumer); }
ConsumerWithTracing implements Consumer<T> { public static <T> ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer) { return new ConsumerWithTracing<>(origConsumer); } }
ConsumerWithTracing implements Consumer<T> { public static <T> ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer) { return new ConsumerWithTracing<>(origConsumer); } ConsumerWithTracing(Consumer<T> origConsumer);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); }
ConsumerWithTracing implements Consumer<T> { public static <T> ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer) { return new ConsumerWithTracing<>(origConsumer); } ConsumerWithTracing(Consumer<T> origConsumer);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override void accept(T t); }
ConsumerWithTracing implements Consumer<T> { public static <T> ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer) { return new ConsumerWithTracing<>(origConsumer); } ConsumerWithTracing(Consumer<T> origConsumer);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  ConsumerWithTracing(Consumer<T> origConsumer,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static ConsumerWithTracing<T> withTracing(Consumer<T> origConsumer,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override void accept(T t);  }