Skip to content

Commit

Permalink
[#noissue] fix plugin-it testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehong-kim committed Sep 1, 2023
1 parent 8d7b1fa commit 36245b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class PluginAgentTestClassLoader extends PluginTestClassLoader {
public PluginAgentTestClassLoader(URL[] urls, ClassLoader parent) {
super(urls, parent);
setClassLoaderName(getClass().getSimpleName());
System.out.println("##" + getClassLoaderName() + " libs");
printLib(urls);
}

public void setTestClassLoader(PluginTestJunitTestClassLoader testClassLoader) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@ public Enumeration<URL> getResources(String name) throws IOException {
return findResources(name);

}

void printLib(URL[] urls) {
for (URL url : urls) {
System.out.println("lib=" + url);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public PluginTestJunitTestClassLoader(URL[] urls, ClassLoader parent, Translator
super(urls, parent);
this.translator = translator;
setClassLoaderName(getClass().getSimpleName());
System.out.println("##" + getClassLoaderName() + " libs");
printLib(urls);
}

public void setAgentClassLoader(PluginAgentTestClassLoader agentClassLoader) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class PluginTestSharedTestClassLoader extends PluginTestClassLoader {
public PluginTestSharedTestClassLoader(URL[] urls, ClassLoader parent) {
super(urls, parent);
setClassLoaderName(getClass().getSimpleName());
System.out.println("##" + getClassLoaderName() + " libs");
printLib(urls);
}

@Override
Expand Down

0 comments on commit 36245b9

Please sign in to comment.