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);
}
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);
}
Aggregations