Search in sources :

Example 1 with DummySegment

use of com.amazonaws.xray.entities.DummySegment in project aws-xray-sdk-java by aws.

the class UDPEmitterTest method sendingSegmentShouldNotThrowExceptions.

@Test
void sendingSegmentShouldNotThrowExceptions() throws SocketException {
    DaemonConfiguration config = getDaemonConfiguration("__udpemittertest_unresolvable__:1234");
    UDPEmitter emitter = new UDPEmitter(config);
    boolean success = emitter.sendSegment(new DummySegment(getGlobalRecorder()));
    assertThat(success).isFalse();
}
Also used : DummySegment(com.amazonaws.xray.entities.DummySegment) DaemonConfiguration(com.amazonaws.xray.config.DaemonConfiguration) Test(org.junit.jupiter.api.Test)

Aggregations

DaemonConfiguration (com.amazonaws.xray.config.DaemonConfiguration)1 DummySegment (com.amazonaws.xray.entities.DummySegment)1 Test (org.junit.jupiter.api.Test)1