Skip to content

Commit 2ded10e

Browse files
authored
Remove useless thrown exception from constructor (#2732)
1 parent 73a861f commit 2ded10e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/mockito/junit/MockitoJUnitRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
* }
6969
* </code></pre>
7070
*
71-
* If you would like to take advantage of Mockito JUnit runner features
71+
* If you would like to take advantage of Mockito JUnit runner features,
7272
* but you cannot use the runner there is a solution!
7373
* {@link MockitoSession} API is intended to offer cleaner tests and improved debuggability
7474
* to users that cannot use Mockito's built-in JUnit support (runner or the rule).
@@ -154,7 +154,7 @@ public MockitoJUnitRunner(Class<?> klass) throws InvocationTargetException {
154154
this(new StrictRunner(new RunnerFactory().createStrict(klass), klass));
155155
}
156156

157-
MockitoJUnitRunner(InternalRunner runner) throws InvocationTargetException {
157+
MockitoJUnitRunner(InternalRunner runner) {
158158
this.runner = runner;
159159
}
160160

0 commit comments

Comments
 (0)