use of com.navercorp.pinpoint.profiler.plugin.TestInterceptors.TestInterceptor0 in project pinpoint by naver.
the class AnnotatedInterceptorFactoryTest method test2.
@Test(expected = PinpointException.class)
public void test2() throws Exception {
Object[] args = new Object[] { 1 };
AnnotatedInterceptorFactory factory = newAnnotatedInterceptorFactory();
factory.getInterceptor(getClass().getClassLoader(), TestInterceptor0.class.getName(), args, null, null, instrumentClass, instrumentMethod);
}
use of com.navercorp.pinpoint.profiler.plugin.TestInterceptors.TestInterceptor0 in project pinpoint by naver.
the class AnnotatedInterceptorFactoryTest method test14.
@Test
public void test14() throws Exception {
String arg0 = "arg0";
Object[] args = new Object[] { ObjectFactory.byConstructor("java.lang.String", arg0) };
AnnotatedInterceptorFactory factory = newAnnotatedInterceptorFactory();
Interceptor interceptor = factory.getInterceptor(getClass().getClassLoader(), TestInterceptor0.class.getName(), args, null, null, instrumentClass, instrumentMethod);
assertEquals(TestInterceptor0.class, interceptor.getClass());
assertEquals(arg0, getField(interceptor, "field0"));
}
use of com.navercorp.pinpoint.profiler.plugin.TestInterceptors.TestInterceptor0 in project pinpoint by naver.
the class AnnotatedInterceptorFactoryTest method test0.
@Test
public void test0() throws Exception {
AnnotatedInterceptorFactory factory = newAnnotatedInterceptorFactory();
Interceptor interceptor = factory.getInterceptor(getClass().getClassLoader(), TestInterceptor0.class.getName(), null, null, null, instrumentClass, instrumentMethod);
assertEquals(TestInterceptor0.class, interceptor.getClass());
}
use of com.navercorp.pinpoint.profiler.plugin.TestInterceptors.TestInterceptor0 in project pinpoint by naver.
the class AnnotatedInterceptorFactoryTest method test1.
@Test
public void test1() throws Exception {
Object[] args = new Object[] { "arg0" };
AnnotatedInterceptorFactory factory = newAnnotatedInterceptorFactory();
Interceptor interceptor = factory.getInterceptor(getClass().getClassLoader(), TestInterceptor0.class.getName(), args, null, null, instrumentClass, instrumentMethod);
assertEquals(TestInterceptor0.class, interceptor.getClass());
assertEquals(args[0], getField(interceptor, "field0"));
}
Aggregations