Skip to content

Commit

Permalink
Rethrow cannot instantiate JQF runner via regular JUnit APIs
Browse files Browse the repository at this point in the history
new IllegalArgumentException() did miss the cause exceptions, so
it was hard to debug the failure reason
  • Loading branch information
vlsi committed Jan 18, 2020
1 parent 67eb7b5 commit 17b5a3e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ public synchronized static Result run(Class<?> testClass, String testMethod,
// Instantiate a runner (may return an error)
Runner testRunner = testRequest.getRunner();

if (testRunner instanceof ErrorReportingRunner) {
throw new IllegalArgumentException(String.format("Could not instantiate a Junit runner for method %s#%s.", testClass.getName(), testMethod));
}

// Start tracing for the test method
SingleSnoop.startSnooping(testClass.getName() + "#" + testMethod);

Expand Down

0 comments on commit 17b5a3e

Please sign in to comment.