Skip to content

Conversation

mockitoguy
Copy link
Member

  1. No API / no behavior changes.
  2. Publicly visible changes:
  • Added missing Javadoc and updated an existing one for MockitoException and MockitoAssertionError classes
  1. Remaining changes, refactoring:
  • Rename job for consistency
  • Removed some unnecessary code
  • Made the tests more stable

It's already included in the interface hierarchy
'Impl' postfix in the interface name is very awkward
Also tweaked existing javadoc
This fixes recently introduced flakiness of the build.
@codecov-io
Copy link

codecov-io commented Dec 23, 2016

Current coverage is 86.57% (diff: 100%)

No coverage report found for release/2.x at 6c8af25.

Powered by Codecov. Last update 6c8af25...e30a4e1

@@ -17,7 +17,7 @@ public void shouldCreateRunnerInstance() throws Throwable {
//given
RunnerProvider provider = new RunnerProvider();
//when
RunnerImpl runner = provider.newInstance("org.mockito.internal.runners.SilentJUnitRunner", this.getClass(), null);
InternalRunner runner = provider.newInstance("org.mockito.internal.runners.DefaultInternalRunner", this.getClass(), null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the runner is in the same package as the factory I don't see why it should be a String ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Code updated!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, about the JUnit on the classpath, but will the RunnerFactory be used at all then ? The only reasonable use is in the Silent runner class which itself extends the JUnit Runner class.

@mockitoguy mockitoguy merged commit 3248b5b into release/2.x Dec 23, 2016
@bric3 bric3 deleted the tidy-ups branch December 24, 2016 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants