Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove useless thrown exception from constructor #2732

Merged
merged 1 commit into from Aug 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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