@DataProvider(value = { "true", "false" }) @Test public void pair_constructor_sets_fields_as_expected_when_pair_is_null(boolean useStaticFactory) { SupplierWithTracing instance = (useStaticFactory) ? withTracing(supplierMock, (Pair)null) : new SupplierWithTracing(supplierMock, (Pair)null); assertThat(instance.origSupplier).isSameAs(supplierMock); assertThat(instance.spanStackForExecution).isNull(); assertThat(instance.mdcContextMapForExecution).isNull(); }
public static <U> SupplierWithTracing<U> withTracing(Supplier<U> origSupplier) { return new SupplierWithTracing<>(origSupplier); }
SupplierWithTracing implements Supplier<U> { public static <U> SupplierWithTracing<U> withTracing(Supplier<U> origSupplier) { return new SupplierWithTracing<>(origSupplier); } }
SupplierWithTracing implements Supplier<U> { public static <U> SupplierWithTracing<U> withTracing(Supplier<U> origSupplier) { return new SupplierWithTracing<>(origSupplier); } SupplierWithTracing(Supplier<U> origSupplier);  SupplierWithTracing(Supplier<U> origSupplier,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SupplierWithTracing(Supplier<U> origSupplier,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); }
SupplierWithTracing implements Supplier<U> { public static <U> SupplierWithTracing<U> withTracing(Supplier<U> origSupplier) { return new SupplierWithTracing<>(origSupplier); } SupplierWithTracing(Supplier<U> origSupplier);  SupplierWithTracing(Supplier<U> origSupplier,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SupplierWithTracing(Supplier<U> origSupplier,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override U get(); }
SupplierWithTracing implements Supplier<U> { public static <U> SupplierWithTracing<U> withTracing(Supplier<U> origSupplier) { return new SupplierWithTracing<>(origSupplier); } SupplierWithTracing(Supplier<U> origSupplier);  SupplierWithTracing(Supplier<U> origSupplier,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  SupplierWithTracing(Supplier<U> origSupplier,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier,
                                                         Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static SupplierWithTracing<U> withTracing(Supplier<U> origSupplier,
                                                         Deque<Span> spanStackForExecution,
                                                         Map<String, String> mdcContextMapForExecution); @Override U get();  }