Groups
Sign in
Groups
mockito
Conversations
About
Send feedback
Help
mockito
1–30 of 1238
Mark all as read
Report group
0 selected
Pablo
, …
Celi Sun
8
Mar 20
Mockito support JDK 21 - Byte Buddy
Sorry, the previous error message format is very hard to read, check the following screenshot or the
unread,
Mockito support JDK 21 - Byte Buddy
Sorry, the previous error message format is very hard to read, check the following screenshot or the
Mar 20
Stack Philips
Mar 18
Static methods
Hi, I have a question/problem with static methods in Mockito I have a class with multiples static
unread,
Static methods
Hi, I have a question/problem with static methods in Mockito I have a class with multiples static
Mar 18
LittleLingzi
,
Moojjoo
2
Jan 16
basic but comprehensive course on mockito?
My recommendation is sign up for a Udemy account and wait till they send a discount email. I am
unread,
basic but comprehensive course on mockito?
My recommendation is sign up for a Udemy account and wait till they send a discount email. I am
Jan 16
Andre Köpke
,
Bruno Bonanno
2
11/26/24
[Enchancement request]: Automatic unpack Optional
I'm pretty sure that works out of the box, can't remember the exact incantation though On 26
unread,
[Enchancement request]: Automatic unpack Optional
I'm pretty sure that works out of the box, can't remember the exact incantation though On 26
11/26/24
Bara' Al-Jawarneh
,
img globleinfo
2
11/26/24
@mock value isn't refelcted when on @InjectMocks
Public Class cTest { List
> x; @InjectMocks C c; @Mock B b; @
unread,
@mock value isn't refelcted when on @InjectMocks
Public Class cTest { List
> x; @InjectMocks C c; @Mock B b; @
11/26/24
Ashley Waldron
8/21/24
[Enhancement request]: void methods should require corresponding strict setup or an explicit verification
Currently it's possible that mocked void methods could be called with the wrong parameters but
unread,
[Enhancement request]: void methods should require corresponding strict setup or an explicit verification
Currently it's possible that mocked void methods could be called with the wrong parameters but
8/21/24
Mother Earth
,
Jim McMaster
2
8/7/24
Facing Errors
I don't have enough information to tell why this is not working. If you want to contact me by
unread,
Facing Errors
I don't have enough information to tell why this is not working. If you want to contact me by
8/7/24
harshainfo
8/2/24
Long initialization time for mock(SomeClass.class)
Hi, I am trying to mock a class called ModuleCompletion in my codebase. While other mocks are created
unread,
Long initialization time for mock(SomeClass.class)
Hi, I am trying to mock a class called ModuleCompletion in my codebase. While other mocks are created
8/2/24
Jason Mathison
6/21/24
Unable to build mockito due to PKIX error
Attempting to build the project is resulting in this error: * What went wrong: Could not resolve all
unread,
Unable to build mockito due to PKIX error
Attempting to build the project is resulting in this error: * What went wrong: Could not resolve all
6/21/24
tuk
3/15/24
Mockito 5.3.1 Seeing high heap usage during test execution
Hi With mockito 5.3.1 we are observing that our heap usage has increased during test execution. Most
unread,
Mockito 5.3.1 Seeing high heap usage during test execution
Hi With mockito 5.3.1 we are observing that our heap usage has increased during test execution. Most
3/15/24
Salil Misra
,
Salil Misra
3
3/7/24
Regarding issue number #3262
If you dont bother to reply to the mail thread, why boast about keeping one in your readme file. On
unread,
Regarding issue number #3262
If you dont bother to reply to the mail thread, why boast about keeping one in your readme file. On
3/7/24
Jim McMaster
11/6/23
I am having problems with Mockito asynchronous verification
I am trying to write an integration test for an asynchronous task. I just updated to Mockito 5.7.0.
unread,
I am having problems with Mockito asynchronous verification
I am trying to write an integration test for an asynchronous task. I just updated to Mockito 5.7.0.
11/6/23
Basil Crow
10/27/23
Mocked static methods and constructors are not available in other threads
It would be nice if mocked static methods and constructors were available in other threads, as
unread,
Mocked static methods and constructors are not available in other threads
It would be nice if mocked static methods and constructors were available in other threads, as
10/27/23
Vol Gol
10/27/23
RestrictedIdentifier Error in Eclipse for static import of org.mockito.Mockito.when
I am currently switching to Java 21 so far there are no real problems with Mockito. But one thing is
unread,
RestrictedIdentifier Error in Eclipse for static import of org.mockito.Mockito.when
I am currently switching to Java 21 so far there are no real problems with Mockito. But one thing is
10/27/23
udemy course
8/28/23
How can be stub out the SORT.BY parameter in when() and verify() calls?
How do i stub out the below line of code. List
workoutList = workoutRepo.findByUserId(
unread,
How can be stub out the SORT.BY parameter in when() and verify() calls?
How do i stub out the below line of code. List
workoutList = workoutRepo.findByUserId(
8/28/23
童虎
,
Tim van der Lippe
2
8/11/23
Site something is out of date
Happy to review a PR on https://github.com/mockito/mockito.github.io to fix this. Thanks for pointing
unread,
Site something is out of date
Happy to review a PR on https://github.com/mockito/mockito.github.io to fix this. Thanks for pointing
8/11/23
Annavi Kiran
,
Tim van der Lippe
3
8/1/23
is mokito enterprice open source tool as of Aug 2023
Hi Team, Thanks for the reply. Is Mockito open source tool and can we used across company for free.
unread,
is mokito enterprice open source tool as of Aug 2023
Hi Team, Thanks for the reply. Is Mockito open source tool and can we used across company for free.
8/1/23
Jiaqian Sun
5/31/23
How to use Mockito BDD to mock a Class> return type method?
I'm having trouble to use Mockito BDD to mock the method whose return type is Class> I
unread,
How to use Mockito BDD to mock a Class> return type method?
I'm having trouble to use Mockito BDD to mock the method whose return type is Class> I
5/31/23
Stefan Bodea
4/28/23
Mockito cannot mock this class: class inventory.repository.InventoryRepository.
Hello, i've got this error: Mockito can only mock non-private & non-final classes. If you
unread,
Mockito cannot mock this class: class inventory.repository.InventoryRepository.
Hello, i've got this error: Mockito can only mock non-private & non-final classes. If you
4/28/23
Thierry Euzenot
,
Brice Dutheil
2
4/24/23
Mockito-inline update site for Eclipse RCP target platform
Hi Thierry, Not sure if it's still relevant for you OSGi is merely adding the necessary entries
unread,
Mockito-inline update site for Eclipse RCP target platform
Hi Thierry, Not sure if it's still relevant for you OSGi is merely adding the necessary entries
4/24/23
Tom Fewster
, …
LINUS FERNANDES
4
3/30/23
It appears as if your JDK does not supply a working agent attachment mechanism.
https://github.com/mockito/mockito/issues/2952 Similar problem encountered with Java 19. Running it
unread,
It appears as if your JDK does not supply a working agent attachment mechanism.
https://github.com/mockito/mockito/issues/2952 Similar problem encountered with Java 19. Running it
3/30/23
Anton Oellerer
2
3/30/23
Mocking is sometimes not applied when running a multi-class testsuite
I fixed this by annotating each class with `@DirtiesContext(classMode = DirtiesContext.ClassMode.
unread,
Mocking is sometimes not applied when running a multi-class testsuite
I fixed this by annotating each class with `@DirtiesContext(classMode = DirtiesContext.ClassMode.
3/30/23
Connor Kolan
3/13/23
Hi there, I tried to mock one of my classes and got this error
[ERROR] testRemoveContextFromInfomodell(unit.setter.KmsSetterTest) Time elapsed: 1.988 s <<<
unread,
Hi there, I tried to mock one of my classes and got this error
[ERROR] testRemoveContextFromInfomodell(unit.setter.KmsSetterTest) Time elapsed: 1.988 s <<<
3/13/23
Jörg von Frantzius
3/10/23
Improved support for generic types in 5.2.0
Hi, I'm happy that PR Feature 2921 generic types by jfrantzius · Pull Request #2923 · mockito/
unread,
Improved support for generic types in 5.2.0
Hi, I'm happy that PR Feature 2921 generic types by jfrantzius · Pull Request #2923 · mockito/
3/10/23
luo weilue
2/11/23
Trouble understanding how a mock is created
Hi people, I am fairly new to mockito and I am trying understand how it works internally. By doing
unread,
Trouble understanding how a mock is created
Hi people, I am fairly new to mockito and I am trying understand how it works internally. By doing
2/11/23
王海航
2/2/23
mockito behaves strange in multiple thread test
Hey, I'm running a scheduler implemented by multiple threads test , and using mockito to mock
unread,
mockito behaves strange in multiple thread test
Hey, I'm running a scheduler implemented by multiple threads test , and using mockito to mock
2/2/23
Kanika Arora
1/19/23
Issue while upgrading mockito version
Hi Team, I have upgraded my mockito version from 3.3.3 to 4.11.0 and all my existing test cases
unread,
Issue while upgrading mockito version
Hi Team, I have upgraded my mockito version from 3.3.3 to 4.11.0 and all my existing test cases
1/19/23
deepak gupta
12/16/22
Inject mock into a Spy
Hi There. class A{ class B; class C; } class C { class D; class E } I want to write unit test for
unread,
Inject mock into a Spy
Hi There. class A{ class B; class C; } class C { class D; class E } I want to write unit test for
12/16/22
Yodgorbek Komilov
9/20/22
lateinit-property-fakeauthrepository-has-not-been-initialized-unit-testing
I am using unit testing when I run test I am getting following exception lateinit property
unread,
lateinit-property-fakeauthrepository-has-not-been-initialized-unit-testing
I am using unit testing when I run test I am getting following exception lateinit property
9/20/22
Flavio Bertini
8/18/22
JUnit for Serial Port method testing
Hello Everyone, I would like to test the method I have implemented for Serial Port communication.
unread,
JUnit for Serial Port method testing
Hello Everyone, I would like to test the method I have implemented for Serial Port communication.
8/18/22