Search in sources :

Example 11 with Sender

use of io.jaegertracing.spi.Sender in project jaeger-client-java by jaegertracing.

the class SenderResolverTest method testFaultySenderFactory.

@Test
public void testFaultySenderFactory() throws Exception {
    Sender sender = getSenderForServiceFileContents(FaultySenderFactory.class.getName(), false);
    assertTrue("Expected to have sender as instance of NoopSender, but was " + sender.getClass(), sender instanceof NoopSender);
}
Also used : Sender(io.jaegertracing.spi.Sender) Test(org.junit.Test)

Example 12 with Sender

use of io.jaegertracing.spi.Sender in project jaeger-client-java by jaegertracing.

the class SenderResolverTest method testMultipleImplementationsAmbiguous.

@Test
public void testMultipleImplementationsAmbiguous() throws Exception {
    SenderFactoryToBeLoaded.sender = new CustomSender();
    Sender sender = getSenderForServiceFileContents("\nio.jaegertracing.internal.senders.InMemorySenderFactory", true);
    assertTrue(sender instanceof NoopSender);
}
Also used : Sender(io.jaegertracing.spi.Sender) Test(org.junit.Test)

Aggregations

Sender (io.jaegertracing.spi.Sender)12 Test (org.junit.Test)10 ILoggingEvent (ch.qos.logback.classic.spi.ILoggingEvent)1 Slf4jLogSender (demo.jaxrs.tracing.Slf4jLogSender)1 Configuration (io.jaegertracing.Configuration)1 ReporterConfiguration (io.jaegertracing.Configuration.ReporterConfiguration)1 SamplerConfiguration (io.jaegertracing.Configuration.SamplerConfiguration)1 SenderConfiguration (io.jaegertracing.Configuration.SenderConfiguration)1 Builder (io.jaegertracing.internal.reporters.RemoteReporter.Builder)1 InMemorySender (io.jaegertracing.internal.senders.InMemorySender)1 SenderFactory (io.jaegertracing.spi.SenderFactory)1 Tracer (io.opentracing.Tracer)1 Response (javax.ws.rs.core.Response)1 OpenTracingClientProvider (org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingClientProvider)1 ArgumentMatcher (org.mockito.ArgumentMatcher)1