Search in sources :

Example 1 with ASMClass

use of com.navercorp.pinpoint.profiler.instrument.ASMClass in project pinpoint by naver.

the class MethodInterfaceTest method isInterceptable.

@Test
public void isInterceptable() throws Exception {
    ClassNode classNode = TestClassLoader.get("com.navercorp.test.pinpoint.jdk8.interfaces.MethodInterface");
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    EngineComponent engineComponent = mock(EngineComponent.class);
    ASMClass clazz = new ASMClass(engineComponent, pluginContext, classLoader, null, classNode);
    assertTrue(clazz.isInterceptable());
}
Also used : ClassNode(org.objectweb.asm.tree.ClassNode) ASMClass(com.navercorp.pinpoint.profiler.instrument.ASMClass) EngineComponent(com.navercorp.pinpoint.profiler.instrument.EngineComponent) Test(org.junit.Test)

Example 2 with ASMClass

use of com.navercorp.pinpoint.profiler.instrument.ASMClass in project pinpoint by pinpoint-apm.

the class MethodInterfaceTest method isInterceptable.

@Test
public void isInterceptable() throws Exception {
    ClassNode classNode = TestClassLoader.get("com.navercorp.test.pinpoint.jdk8.interfaces.MethodInterface");
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    EngineComponent engineComponent = mock(EngineComponent.class);
    ASMClass clazz = new ASMClass(engineComponent, pluginContext, classLoader, null, classNode);
    assertTrue(clazz.isInterceptable());
}
Also used : ClassNode(org.objectweb.asm.tree.ClassNode) ASMClass(com.navercorp.pinpoint.profiler.instrument.ASMClass) EngineComponent(com.navercorp.pinpoint.profiler.instrument.EngineComponent) Test(org.junit.Test)

Aggregations

ASMClass (com.navercorp.pinpoint.profiler.instrument.ASMClass)2 EngineComponent (com.navercorp.pinpoint.profiler.instrument.EngineComponent)2 Test (org.junit.Test)2 ClassNode (org.objectweb.asm.tree.ClassNode)2