use of org.apache.activemq.command.ActiveMQTextMessage in project brave by openzipkin.
the class TracingJMSConsumerTest method receive_creates_consumer_span.
@Test
public void receive_creates_consumer_span() throws Exception {
ActiveMQTextMessage message = new ActiveMQTextMessage();
receive(message);
MutableSpan consumer = testSpanHandler.takeRemoteSpan(CONSUMER);
assertThat(consumer.name()).isEqualTo("receive");
assertThat(consumer.name()).isEqualTo("receive");
}
Aggregations