Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
mockito
Conversations
About
mockito
Contact owners and managers
1–30 of 1228
Mark all as read
Report abusive group
0 selected
Jim McMaster
Nov 6
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.
Nov 6
Basil Crow
Oct 27
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
Oct 27
Vol Gol
Oct 27
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
Oct 27
udemy course
Aug 28
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<Workout> 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<Workout> workoutList = workoutRepo.findByUserId(
Aug 28
童虎
,
Tim van der Lippe
2
Aug 11
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
Aug 11
Annavi Kiran
,
Tim van der Lippe
3
Aug 1
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.
Aug 1
Jiaqian Sun
May 31
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
May 31
Stefan Bodea
Apr 28
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
Apr 28
Thierry Euzenot
,
Brice Dutheil
2
Apr 24
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
Apr 24
Tom Fewster
, …
LINUS FERNANDES
4
Mar 30
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
Mar 30
Anton Oellerer
2
Mar 30
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.
Mar 30
Connor Kolan
Mar 13
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 <<<
Mar 13
Jörg von Frantzius
Mar 10
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/
Mar 10
luo weilue
Feb 11
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
Feb 11
王海航
Feb 2
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
Feb 2
Kanika Arora
Jan 19
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
Jan 19
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
Chris Dams
,
Tim van der Lippe
2
8/16/22
What to do about "illegal reflective access"
You can find more information about this in https://github.com/mockito/mockito/issues/1325 TLDR: use
unread,
What to do about "illegal reflective access"
You can find more information about this in https://github.com/mockito/mockito/issues/1325 TLDR: use
8/16/22
Evie Doe
8/8/22
Mockito AsyncTask
do any one have an Idea to mock an AsyncTask Class method call or is it even possible? because I know
unread,
Mockito AsyncTask
do any one have an Idea to mock an AsyncTask Class method call or is it even possible? because I know
8/8/22
Jitendra Holmes
7/20/22
Mockito Exception
Hi Mockito, org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class com.
unread,
Mockito Exception
Hi Mockito, org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class com.
7/20/22
Bara' Al-Jawarneh
7/11/22
@mock value isn't refelcted when on @InjectMocks
I'm new to Mockito and I was trying to write the unit test for nstead adapters lets say we have I
unread,
@mock value isn't refelcted when on @InjectMocks
I'm new to Mockito and I was trying to write the unit test for nstead adapters lets say we have I
7/11/22
Moustafa Swelam
,
Tim van der Lippe
3
6/13/22
Mockito compatibility with jdk 17
thansk alot On Monday, June 13, 2022 at 10:46:39 AM UTC+2 tvande...@gmail.com wrote: Yes: https://
unread,
Mockito compatibility with jdk 17
thansk alot On Monday, June 13, 2022 at 10:46:39 AM UTC+2 tvande...@gmail.com wrote: Yes: https://
6/13/22
Peter Shankey
6/5/22
Mockito mocking a class instantiated in a method of the class under test
public class Pojo { public Integer convert(String s) { System.out.println("this should be mocked
unread,
Mockito mocking a class instantiated in a method of the class under test
public class Pojo { public Integer convert(String s) { System.out.println("this should be mocked
6/5/22
Stan Tarasov
5/23/22
New method for loading all mocks in test
Hello, We use Mockito in our projects a lot and lately I've been having an idea about adding a
unread,
New method for loading all mocks in test
Hello, We use Mockito in our projects a lot and lately I've been having an idea about adding a
5/23/22
Jean Helou
,
Tim van der Lippe
3
5/10/22
Cannot mock/spy because : final class ... gradle only
Thanks again, adding the dependency to both builds fixed the gradle tests and had no adverse effects
unread,
Cannot mock/spy because : final class ... gradle only
Thanks again, adding the dependency to both builds fixed the gradle tests and had no adverse effects
5/10/22
Andy Langer
4/28/22
Is there a way to mock construction with mockito-inline only if the constructor arguments match?
I'm having issues getting mockito-inline to handle a case that I would encounter when using
unread,
Is there a way to mock construction with mockito-inline only if the constructor arguments match?
I'm having issues getting mockito-inline to handle a case that I would encounter when using
4/28/22
Brandon Heck
,
Tim van der Lippe
3
4/22/22
Equivalent of ArgumentCaptor when using mockConstruction
This sounds like the intended pattern to me, and I don't think introducing a dedicated API for
unread,
Equivalent of ArgumentCaptor when using mockConstruction
This sounds like the intended pattern to me, and I don't think introducing a dedicated API for
4/22/22
reddi prit
3/23/22
Why @InjectMocks Does Not Support Mixed Dependency Injection?
Recently I encountered a problem when I wrote a Junit test case using Mockito. I got to know that it
unread,
Why @InjectMocks Does Not Support Mixed Dependency Injection?
Recently I encountered a problem when I wrote a Junit test case using Mockito. I got to know that it
3/23/22