question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggested scope of Mockito 4

  • ~Move Java version compatibility to 8+~ - implemented in Mockito 3
  • Enable strict stubbing by default in JUnit4 test runners (#769)
  • Remove all deprecated Mockito 2 classes (https://github.com/mockito/mockito/search?q=deprecated&unscoped_q=deprecated)
  • Un-incubate (or promote) incubating features
  • Write migration guide for existing users
    • Write ErrorProne refactoring check that automatically moves all runners to Silent, so that companies can gradually upgrade.
  • Move Junit5 extension from subproject to core project.

Any comments or feedback?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:33 (26 by maintainers)

github_iconTop GitHub Comments

10reactions
itwarilalcommented, Oct 14, 2018

Would be great if static and final method mocking is provided out of the box. It’s easy enough to do this with powerMock but why add another dep just for that.

9reactions
qualidafialcommented, Oct 14, 2018

Please consider JUnit 5 Jupiter extensions alongside JUnit 4 test rules

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mockito framework site
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn't...
Read more >
Mockito (Mockito 4.9.0 API) - javadoc.io
The Mockito library enables mock creation, verification and stubbing. This javadoc content is also available on the https://site.mockito.org/ web page.
Read more >
Releases · mockito/mockito - GitHub
Most popular Mocking framework for unit tests written in Java - Releases · mockito/mockito.
Read more >
Mockito Tutorial - Baeldung
Learn how to work with the popular Java mocking library Mockito, for clean and readable unit tests. ... Mockito Tutorial. Last modified: December...
Read more >
MockitoJava on Twitter: "We have just published Mockito 4.0.0 ...
We have just published Mockito 4.0.0 to Maven Central! ... Release v4.0.0 · mockito/mockito. Mockito 4: Removing deprecated APIs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found