use of com.nr.instrumentation.akka22.test.actors.forwarding.ForwardActor in project newrelic-java-agent by newrelic.
the class AkkaTest method testSend.
@Test
public void testSend() throws InterruptedException {
ActorSystem system = ActorSystem.create("AkkaTestSystem");
TestApp.sendMessageInTransaction(system);
Introspector introspector = InstrumentationTestRunner.getIntrospector();
int finishedTransactionCount = introspector.getFinishedTransactionCount(5000);
assertEquals(1, finishedTransactionCount);
String transactionName = "OtherTransaction/AkkaForward/Forward";
Map<String, TracedMetricData> metricsForTransaction = introspector.getMetricsForTransaction(transactionName);
assertTrue(metricsForTransaction.containsKey("Akka/forward/forwardActor"));
assertTrue(metricsForTransaction.containsKey("Akka/receive/" + ForwardActor.class.getName()));
}
Aggregations