Skip to content

Commit

Permalink
Remove useless thrown exception from constructor (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibstars committed Aug 15, 2022
1 parent 73a861f commit 2ded10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/mockito/junit/MockitoJUnitRunner.java
Expand Up @@ -68,7 +68,7 @@
* }
* </code></pre>
*
* If you would like to take advantage of Mockito JUnit runner features
* If you would like to take advantage of Mockito JUnit runner features,
* but you cannot use the runner there is a solution!
* {@link MockitoSession} API is intended to offer cleaner tests and improved debuggability
* to users that cannot use Mockito's built-in JUnit support (runner or the rule).
Expand Down Expand Up @@ -154,7 +154,7 @@ public MockitoJUnitRunner(Class<?> klass) throws InvocationTargetException {
this(new StrictRunner(new RunnerFactory().createStrict(klass), klass));
}

MockitoJUnitRunner(InternalRunner runner) throws InvocationTargetException {
MockitoJUnitRunner(InternalRunner runner) {
this.runner = runner;
}

Expand Down

0 comments on commit 2ded10e

Please sign in to comment.