remove code
This commit is contained in:
parent
cd358e5766
commit
de74af602b
|
|
@ -1,31 +0,0 @@
|
|||
package com.a.eye.skywalking.sniffer.mock.plugin;
|
||||
|
||||
import com.a.eye.skywalking.api.plugin.interceptor.enhance.ClassEnhancePluginDefine;
|
||||
|
||||
public class InstrumentationAssert {
|
||||
|
||||
private ClassEnhancePluginDefine instrumentationClass;
|
||||
private String enhanceClass;
|
||||
|
||||
public InstrumentationAssert(Class instrumentationClass) {
|
||||
try {
|
||||
this.instrumentationClass = (ClassEnhancePluginDefine) instrumentationClass.newInstance();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public InstrumentationAssert enhanceClass(String enhanceClass) {
|
||||
this.enhanceClass = enhanceClass;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public InstrumentationAssert constructor() {
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public void withParamType(Class... paramType) {
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
package com.a.eye.skywalking.sniffer.mock.plugin;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static net.bytebuddy.matcher.ElementMatchers.named;
|
||||
|
||||
|
||||
public class InstrumentationAssertTest {
|
||||
|
||||
@Test
|
||||
public void testAssert() {
|
||||
|
||||
new InstrumentationAssert(Object.class).enhanceClass("")
|
||||
.constructor().withParamType(Class.class, Object.class);
|
||||
/*.and(assertMethod("").withParamType())*/
|
||||
|
||||
// new InstrumentationAssert(Object.class).enhanceClass("").allMethod()
|
||||
// .and(assertConstructor().withParamType(Class.class, Object.class));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue