Search in sources :

Example 1 with NotMatcher

use of com.newrelic.agent.instrumentation.classmatchers.NotMatcher in project newrelic-java-agent by newrelic.

the class InstrumentationConstructorTest method notClassMatcher.

@Test
public void notClassMatcher() throws Exception {
    NotMatcher classMatcher = load("!not_class_matcher [ !exact_class_matcher 'java/lang/Object' ]");
    Assert.assertEquals(new NotMatcher(new ExactClassMatcher("java/lang/Object")), classMatcher);
}
Also used : ExactClassMatcher(com.newrelic.agent.instrumentation.classmatchers.ExactClassMatcher) NotMatcher(com.newrelic.agent.instrumentation.classmatchers.NotMatcher) Test(org.junit.Test)

Aggregations

ExactClassMatcher (com.newrelic.agent.instrumentation.classmatchers.ExactClassMatcher)1 NotMatcher (com.newrelic.agent.instrumentation.classmatchers.NotMatcher)1 Test (org.junit.Test)1