use of com.newrelic.agent.extension.beans.Extension.Instrumentation.Pointcut in project newrelic-java-agent by newrelic.
the class ExtensionConversionUtilityTest method createClassMatcher_empty.
@Test(expected = XmlException.class)
public void createClassMatcher_empty() throws XmlException {
Pointcut pointcut = new Pointcut();
ClassName name = new ClassName();
name.setValue(ArrayList.class.getName());
ExtensionConversionUtility.createClassMatcher(pointcut, "test");
}
use of com.newrelic.agent.extension.beans.Extension.Instrumentation.Pointcut in project newrelic-java-agent by newrelic.
the class ExtensionConversionUtilityTest method createClassMatcherAnnotation.
@Test(expected = XmlException.class)
public void createClassMatcherAnnotation() throws XmlException {
Pointcut pointcut = new Pointcut();
pointcut.setMethodAnnotation("com.some.Annotation");
ExtensionConversionUtility.createClassMatcher(pointcut, "test");
}
Aggregations