Search in sources :

Example 16 with TransactionNamePriority

use of com.newrelic.agent.bridge.TransactionNamePriority in project newrelic-java-agent by newrelic.

the class PriorityTransactionNameTest method createTransactionName.

@Test
public void createTransactionName() {
    String expectedName = "MyTransactionName";
    TransactionNamePriority expectedPriority = TransactionNamePriority.FILTER_NAME;
    PriorityTransactionName txName = PriorityTransactionName.create(expectedName, null, expectedPriority);
    Assert.assertEquals(expectedPriority, txName.getPriority());
    Assert.assertEquals(expectedName, txName.getName());
}
Also used : TransactionNamePriority(com.newrelic.agent.bridge.TransactionNamePriority) Test(org.junit.Test)

Aggregations

TransactionNamePriority (com.newrelic.agent.bridge.TransactionNamePriority)16 Test (org.junit.Test)16 Transaction (com.newrelic.agent.Transaction)14 BasicRequestRootTracer (com.newrelic.agent.tracers.servlet.BasicRequestRootTracer)14 PriorityTransactionName (com.newrelic.agent.transaction.PriorityTransactionName)14 ArrayList (java.util.ArrayList)7 BrowserConfigTest (com.newrelic.agent.browser.BrowserConfigTest)5