Skip to content

Commit

Permalink
Issue fixed #269: DSpot should set the thread context classloader (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmassol authored and danglotb committed Dec 11, 2017
1 parent 75cb6d4 commit caf38ca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public TestListener run(Class<?> testClass, Collection<String> testMethodNames,
RunNotifier runNotifier = new RunNotifier();
Arrays.stream(additionalListeners).forEach(runNotifier::addListener);
runNotifier.addFirstListener(listener);
Thread.currentThread().setContextClassLoader(this.classLoader);
runner.run(runNotifier);
});
try {
Expand Down

0 comments on commit caf38ca

Please sign in to comment.