use of com.navercorp.pinpoint.profiler.plugin.ClassNameFilter in project pinpoint by naver.
the class PlainClassLoaderHandlerTest method newPluginConfig.
// @Test
// public void injectClass() {
// PluginConfig pluginConfig = newPluginConfig();
//
// PlainClassLoaderHandler plainClassLoaderHandler = new PlainClassLoaderHandler(pluginConfig);
// plainClassLoaderHandler.injectClass(this.getClass().getClassLoader(), "java.lang.String");
//
// }
private PluginConfig newPluginConfig() {
JarPlugin plugin = mock(JarPlugin.class);
JarFile jarFile = mock(JarFile.class);
when(plugin.getJarFile()).thenReturn(jarFile);
ClassNameFilter filter = new ClassNameFilter() {
@Override
public boolean accept(String className) {
return ClassNameFilter.ACCEPT;
}
};
PluginConfig pluginConfig = new PluginConfig(plugin, filter);
return pluginConfig;
}
Aggregations