@Test public void testCreateWithProvidedTracer() { Tracer mock = Mockito.mock(Tracer.class); JmsTracer jmsTracer = OpenTracingTracerFactory.create(mock); assertEquals("Unexpected tracer instance type", OpenTracingTracer.class, jmsTracer.getClass()); Mockito.verifyNoInteractions(mock); jmsTracer.close(); Mockito.verifyNoInteractions(mock); }
public static JmsTracer create(Tracer tracer) { return create(tracer, false); }
OpenTracingTracerFactory extends JmsTracerFactory { public static JmsTracer create(Tracer tracer) { return create(tracer, false); } }
OpenTracingTracerFactory extends JmsTracerFactory { public static JmsTracer create(Tracer tracer) { return create(tracer, false); }  }
OpenTracingTracerFactory extends JmsTracerFactory { public static JmsTracer create(Tracer tracer) { return create(tracer, false); }  static JmsTracer create(Tracer tracer); static JmsTracer create(Tracer tracer, boolean closeUnderlyingTracer); @Override JmsTracer createTracer(URI remoteURI, String name); }
OpenTracingTracerFactory extends JmsTracerFactory { public static JmsTracer create(Tracer tracer) { return create(tracer, false); }  static JmsTracer create(Tracer tracer); static JmsTracer create(Tracer tracer, boolean closeUnderlyingTracer); @Override JmsTracer createTracer(URI remoteURI, String name);  }