@Test public void throwsExceptionWhenThreadLocalApplicationContextIsNotSet() throws Exception { ApplicationContext.setCurrent(null); thrown.expect(IllegalStateException.class); Tracer.isTracingEnabled(); }
public static boolean isTracingEnabled() { ApplicationContext context = ApplicationContext.getCurrent(); if (context == null) { throw new IllegalStateException("ApplicationContext is not initialized yet. "); } return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing")); }
Tracer { public static boolean isTracingEnabled() { ApplicationContext context = ApplicationContext.getCurrent(); if (context == null) { throw new IllegalStateException("ApplicationContext is not initialized yet. "); } return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing")); } }
Tracer { public static boolean isTracingEnabled() { ApplicationContext context = ApplicationContext.getCurrent(); if (context == null) { throw new IllegalStateException("ApplicationContext is not initialized yet. "); } return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing")); }  }
Tracer { public static boolean isTracingEnabled() { ApplicationContext context = ApplicationContext.getCurrent(); if (context == null) { throw new IllegalStateException("ApplicationContext is not initialized yet. "); } return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing")); }  static boolean isTracingEnabled(); static void trace(String message); static void trace(String format, Object... args); static void addTraceHeaders(GenericContainerResponse response); }
Tracer { public static boolean isTracingEnabled() { ApplicationContext context = ApplicationContext.getCurrent(); if (context == null) { throw new IllegalStateException("ApplicationContext is not initialized yet. "); } return Boolean.parseBoolean(context.getQueryParameters().getFirst("tracing")); }  static boolean isTracingEnabled(); static void trace(String message); static void trace(String format, Object... args); static void addTraceHeaders(GenericContainerResponse response);  }