@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 ThrowingCallable() { @Override public void call() throws Throwable { new RunnableWithTracing(null); } })).isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(new ThrowingCallable() { @Override public void call() throws Throwable { withTracing(null); } })).isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(new ThrowingCallable() { @Override public void call() throws Throwable { new RunnableWithTracing(null, Pair.of(spanStackMock, mdcInfoMock)); } })).isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(new ThrowingCallable() { @Override public void call() throws Throwable { withTracing(null, Pair.of(spanStackMock, mdcInfoMock)); } })).isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(new ThrowingCallable() { @Override public void call() throws Throwable { new RunnableWithTracing(null, spanStackMock, mdcInfoMock); } })).isInstanceOf(IllegalArgumentException.class); assertThat(catchThrowable(new ThrowingCallable() { @Override public void call() throws Throwable { withTracing(null, spanStackMock, mdcInfoMock); } })).isInstanceOf(IllegalArgumentException.class); }
public static RunnableWithTracing withTracing(Runnable origRunnable) { return new RunnableWithTracing(origRunnable); }
RunnableWithTracing implements Runnable { public static RunnableWithTracing withTracing(Runnable origRunnable) { return new RunnableWithTracing(origRunnable); } }
RunnableWithTracing implements Runnable { public static RunnableWithTracing withTracing(Runnable origRunnable) { return new RunnableWithTracing(origRunnable); } RunnableWithTracing(Runnable origRunnable);  RunnableWithTracing(Runnable origRunnable,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  RunnableWithTracing(Runnable origRunnable,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); }
RunnableWithTracing implements Runnable { public static RunnableWithTracing withTracing(Runnable origRunnable) { return new RunnableWithTracing(origRunnable); } RunnableWithTracing(Runnable origRunnable);  RunnableWithTracing(Runnable origRunnable,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  RunnableWithTracing(Runnable origRunnable,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static RunnableWithTracing withTracing(Runnable origRunnable); static RunnableWithTracing withTracing(Runnable origRunnable,
                                                   Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static RunnableWithTracing withTracing(Runnable origRunnable,
                                                   Deque<Span> spanStackForExecution,
                                                   Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void run(); }
RunnableWithTracing implements Runnable { public static RunnableWithTracing withTracing(Runnable origRunnable) { return new RunnableWithTracing(origRunnable); } RunnableWithTracing(Runnable origRunnable);  RunnableWithTracing(Runnable origRunnable,
                               Pair<Deque<Span>, Map<String, String>> originalThreadInfo);  RunnableWithTracing(Runnable origRunnable,
                               Deque<Span> spanStackForExecution,
                               Map<String, String> mdcContextMapForExecution); static RunnableWithTracing withTracing(Runnable origRunnable); static RunnableWithTracing withTracing(Runnable origRunnable,
                                                   Pair<Deque<Span>, Map<String, String>> originalThreadInfo); static RunnableWithTracing withTracing(Runnable origRunnable,
                                                   Deque<Span> spanStackForExecution,
                                                   Map<String, String> mdcContextMapForExecution); @Override @SuppressWarnings("deprecation") void run();  }