--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/7cc607a5-e93c-40e6-8acc-a7093dbb7969n%40googlegroups.com.
I noticed that we were using powermock 2.0.4 (to help with mocking static methods). I updated that to 2.0.9 based on this issue:
https://github.com/powermock/powermock/pull/1049 which supposedly updates powermock to be compatible with Mockito 3.x
that update was successful and allows for 100% of my legacy tests to run and pass with powermock 2.0.9 and mockito-core 3.7.7
But I still see hundreds of failures when I change only mockito-core to mockito-inline.
A key assumption I making, which may be wrong, is that mockito-inline is a superset of mockito-core. Is this correct?
I may also have missed docs on what versions of other components are needed. Examples would be powermock (now on the latest I could find), junit-platform, and others. Is this documented anywhere?
Thanks for the help gang – I really appreciate it,
John
--
You received this message because you are subscribed to a topic in the Google Groups "mockito" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mockito/BlY1PyabJ94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mockito+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/218136e0-610f-428b-8753-b823414b6ac2n%40googlegroups.com.
Some progress:
From: John Guin <john...@smartsheet.com>
Sent: Friday, February 12, 2021 11:13 AM
To: 'moc...@googlegroups.com' <moc...@googlegroups.com>
Subject: RE: [mockito] Migrating from Mockito 2.28 to 3.7 and many tests immediately fail
I noticed that we were using powermock 2.0.4 (to help with mocking static methods). I updated that to 2.0.9 based on this issue:
https://github.com/powermock/powermock/pull/1049 which supposedly updates powermock to be compatible with Mockito 3.x
that update was successful and allows for 100% of my legacy tests to run and pass with powermock 2.0.9 and mockito-core 3.7.7
But I still see hundreds of failures when I change only mockito-core to mockito-inline.
A key assumption I making, which may be wrong, is that mockito-inline is a superset of mockito-core. Is this correct?
I may also have missed docs on what versions of other components are needed. Examples would be powermock (now on the latest I could find), junit-platform, and others. Is this documented anywhere?
Thanks for the help gang – I really appreciate it,
John
From: moc...@googlegroups.com <moc...@googlegroups.com> On Behalf Of John Buffington
Sent: Friday, February 12, 2021 8:56 AM
To: mockito <moc...@googlegroups.com>
Subject: Re: [mockito] Migrating from Mockito 2.28 to 3.7 and many tests immediately fail
We have a few projects that have this issue but they are very big (old) classes with > 20k tests. I'm still digging into solutions but for now am using the retry plug in of gradle to work around that.
--
You received this message because you are subscribed to a topic in the Google Groups "mockito" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mockito/BlY1PyabJ94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mockito+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/218136e0-610f-428b-8753-b823414b6ac2n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/1be5a91a-b54d-471d-874f-6fc39c4d8136n%40googlegroups.com.
Thanks for the quick reply – I’ll see if I can narrow this down any further.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/CAAYcR_J7JC8yFjADyObdadpf45fHnNanFn_9JEankmMi04%2BwQw%40mail.gmail.com.