
MockitoJava
@MockitoJava
Tasty mocking framework for unit tests in Java http://mockito.org
You might like
We just published Mockito 3 to Maven Central!
Congrats to the active maintainers of @MockitoJava for shipping version 3.0.0, this version one is _only_ about making Java 8 the minimum requirement. New work can now leverage many improvement in the language and JDK API that shipped since Java 6. github.com/mockito/mockit…
Currently, all PRs to @MockitoJava are blocked because of a Java 8 build issue. Are you looking to contribute to an open source project? I would be delighted to help you out. Some instructions and options are listed here: github.com/mockito/mockit…
It's a tough time to focus on tech. We, the Mockito team, stand with Ukraine. If you can help, please do! helpukrainewin.org
Someone from the @MockitoJava community created this IntelliJ plugin It seems to be the very first version : plugins.jetbrains.com/plugin/18117-m…
Mockito 4.1.0 ships a new major feature: `@DoNotMock`. You can now mark classes/interfaces with @org.mockito.DoNotMock to disallow mocking with Mockito. For more information, see our documentation: javadoc.io/doc/org.mockit…
Thank you! We upgraded to Mockito 4.0.0 in several projects - works like a charm (both on Java 11 and Java 17).
We have just published Mockito 4.0.0 to Maven Central! The 4.0.0 release removes all previously deprecated APIs. There are no other breaking changes or otherwise functional changes compared to Mockito 3.12.4 For an overview of now removed APIs, please see github.com/mockito/mockit…
Are you an Android developer who uses Mockito? To avoid regressions for our Android users, we are looking to add a small regression test suite (our 3.11.x releases had several issues). If you would like to contribute to open source, the place to start is github.com/mockito/mockit…
The power of opensource: I've built a project on #java 17 and one mock failed. Submitted the bug github.com/mockito/mockit… and @rafaelcodes already fixed it (thanks!), long before Java 17 is officially released. So we're already paving the road for a smooth transition to Java 17.
github.com
Mock enum with methods fails on Java 17 · Issue #2315 · mockito/mockito
The following fails on Java 17 and works on 11 and 16: public enum ExampleEnum { TEST { public String retrieve() { return "test"; } }; public String getValue() { return "21"; } ...
Please be aware of future JDK releases that can break your test if you are using `mockito-core`. Mockito is ready for the future with the `mockito-inline` artifact, which enables the future-proof inline mockmaker. We recommend switching the artifact if you run into these issues.
Congrats to the active maintainers of @MockitoJava for shipping version 3.0.0, this version one is _only_ about making Java 8 the minimum requirement. New work can now leverage many improvement in the language and JDK API that shipped since Java 6. github.com/mockito/mockit…
Mockito is open source and looking for developers working in the Android ecosystem who can help us out with a solution: github.com/mockito/mockit…
If there is one thing I have learned about Mockito 2, is that the large number of breaking changes involved can cause a lot of pain for your users. I am trying to prevent that from reoccurring, yet I feel like I am missing knowledge to do so and it inevitably happens yet again.
For our Android users, we just published version 3.5.2 to Maven Central which should fix the issue with your build (which broke with 3.5.0). Please upgrade and let us know if there are any other issues.
@rafaelcodes, after upgrading from mockito 3.4.6 to 3.5.0 test are not able to be run. Is that connected with my setup? Or is there in issue in the release?

This is my number one question for the Java ecosystem: how does a (popular) library support modern Java (8+) while not breaking Android support? We have hit this numerous times with Mockito, but surely we cant be the only ones?
@rafaelcodes, after upgrading from mockito 3.4.6 to 3.5.0 test are not able to be run. Is that connected with my setup? Or is there in issue in the release?

Mockito is now fully ready for the future.
@rafaelcodes, after upgrading from mockito 3.4.6 to 3.5.0 test are not able to be run. Is that connected with my setup? Or is there in issue in the release?

With static mocks you can ensure that the current DateTime is used by your code. In my opinion use cases for static mocking are rare, but this is an example which shows that it can help you a lot in certain situations. Thanks @MockitoJava and @rafaelcodes

Looking foreward to leading Oracle’s contributions to @micronautfw and working closely with the @graalvm and @helidon_project teams Micronaut’s unique compilation time approach has driven industry change in framework design and I cant wait to continuing that work at @oracle
We’re excited that @GraemeRocher, founder of @micronautfw, is joining Oracle! We’re looking forward to working more closely with and contribute to the Micronaut community. We have always supported the Micronaut team as a leader in supporting @GraalVM for cloud-native Java apps.
BREAKING: ICANN has voted to REJECT the sale of the .ORG registry to private equity firm Ethos Capital. This is a major victory for the millions of nonprofits, civil society organizations, and individuals who make .ORG their home online. #SaveDotOrg icann.org/news/blog/ican…

United States Trends
- 1. D’Angelo 274K posts
- 2. Brown Sugar 20.2K posts
- 3. #PortfolioDay 15.3K posts
- 4. Young Republicans 12.3K posts
- 5. Pentagon 109K posts
- 6. Politico 164K posts
- 7. Drew Struzan 27K posts
- 8. Black Messiah 10.4K posts
- 9. Big 12 N/A
- 10. Scream 3 N/A
- 11. Voodoo 20.9K posts
- 12. Venables 3,495 posts
- 13. Soybeans 4,773 posts
- 14. Merino 13.3K posts
- 15. World Cup 326K posts
- 16. Jeff Albert N/A
- 17. Baldwin 20.6K posts
- 18. VPNs 1,425 posts
- 19. Happy Birthday Charlie 144K posts
- 20. George Strait 3,732 posts
You might like
-
Java Champions
@Java_Champions -
Baeldung
@baeldung -
Spring Data Team
@SpringData -
Spring I/O
@spring_io -
GraalVM
@graalvm -
Spring Security
@SpringSecurity -
SpringCentral
@springcentral -
SpringOne
@SpringOne -
Java at Microsoft
@JavaAtMicrosoft -
Jakarta EE
@JakartaEE -
Hibernate
@Hibernate -
Spring Batch
@springbatch -
The Micronaut Framework
@micronautfw -
JCP
@jcp_org
Something went wrong.
Something went wrong.