use of com.navercorp.pinpoint.bootstrap.instrument.InstrumentContext in project pinpoint by naver.
the class JavassistEngineTest method testGetClass_original.
@Test
public void testGetClass_original() throws Exception {
InstrumentEngine instrumentEngine = newJavassistEngine();
InstrumentContext instrumentContext = mock(InstrumentContext.class);
final byte[] originalByteCode = BytecodeUtils.getClassFile(null, mock);
final InstrumentClass transformClass = instrumentEngine.getClass(instrumentContext, null, mock, originalByteCode);
Assert.assertNotNull(transformClass.getDeclaredMethod("test"));
Assert.assertNull("transform method", transformClass.getDeclaredMethod("transformMethod"));
}
Aggregations