←
MockitoJava234 posts
MockitoJava avatar

MockitoJava

@MockitoJava

Tasty mocking framework for unit tests in Java mockito.org

◷ Joined July 2016▧ 2 Photos and videos
Tim van der Lippe avatar
⟳ MockitoJava retweeted
Tim van der Lippe@TimvdLippe·15 Oct 2022

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/mockito/i…

Andrei Solntsev avatar
⟳ MockitoJava retweeted
Andrei Solntsev@asolntsev·8 Oct 2021

Thank you! We upgraded to Mockito 4.0.0 in several projects - works like a charm (both on Java 11 and Java 17).

MockitoJava avatar
MockitoJava@MockitoJava·7 Oct 2021

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/mockito/r…

MockitoJava avatar
MockitoJava@MockitoJava·2 Jul 2021

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/mockito/i…

MockitoJava avatar
MockitoJava@MockitoJava·29 Mar 2021

The mockito-kotlin artifact has migrated to the Mockito GitHub organisation and is now published at "org.mockito.kotlin:mockito-kotlin" on Maven Central. We also published version 3.0.0 that upgrades to Mockito 3 and migrates to ArgumentMatchers: github.com/mockito/mockito-k…

MockitoJava avatar
MockitoJava@MockitoJava·2 Jan 2021

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.

This tweet is unavailable

Tim van der Lippe avatar
⟳ MockitoJava retweeted
Tim van der Lippe@TimvdLippe·7 Sep 2020

Mockito is open source and looking for developers working in the Android ecosystem who can help us out with a solution: github.com/mockito/mockito/i…

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.

MockitoJava avatar
MockitoJava@MockitoJava·18 Aug 2020

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?

Post attachment
Tim van der Lippe avatar
⟳ MockitoJava retweeted
Tim van der Lippe@TimvdLippe·17 Aug 2020

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?

This tweet is unavailable

Oliver Libutzki avatar
⟳ MockitoJava retweeted
Oliver Libutzki@OliverLibutzki·14 Aug 2020

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

Post attachment