mockito - Google Groups (original) (raw)

0 selected

Ashley Waldron's profile photo

Ashley Waldron

Aug 21

[Enhancement request]: void methods should require corresponding strict setup or an explicit verificationCurrently 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 verificationCurrently it's possible that mocked void methods could be called with the wrong parameters but

Aug 21

Mother Earth's profile photo

Mother Earth, Jim McMaster2

Aug 7

Facing ErrorsI don't have enough information to tell why this is not working. If you want to contact me by

unread,

Facing ErrorsI don't have enough information to tell why this is not working. If you want to contact me by

Aug 7

harshainfo's profile photo

harshainfo

Aug 2

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

Aug 2

Jason Mathison's profile photo

Jason Mathison

Jun 21

Unable to build mockito due to PKIX errorAttempting to build the project is resulting in this error: * What went wrong: Could not resolve all

unread,

Unable to build mockito due to PKIX errorAttempting to build the project is resulting in this error: * What went wrong: Could not resolve all

Jun 21

tuk's profile photo

tuk

Mar 15

Mockito 5.3.1 Seeing high heap usage during test executionHi 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 executionHi With mockito 5.3.1 we are observing that our heap usage has increased during test execution. Most

Mar 15

Salil Misra's profile photo

Salil Misra, Salil Misra3

Mar 7

Regarding issue number #3262If you dont bother to reply to the mail thread, why boast about keeping one in your readme file. On

unread,

Regarding issue number #3262If you dont bother to reply to the mail thread, why boast about keeping one in your readme file. On

Mar 7

Jim McMaster's profile photo

Jim McMaster

11/6/23

I am having problems with Mockito asynchronous verificationI 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 verificationI am trying to write an integration test for an asynchronous task. I just updated to Mockito 5.7.0.

11/6/23

Basil Crow's profile photo

Basil Crow

10/27/23

Mocked static methods and constructors are not available in other threadsIt 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 threadsIt would be nice if mocked static methods and constructors were available in other threads, as

10/27/23

Vol Gol's profile photo

Vol Gol

10/27/23

RestrictedIdentifier Error in Eclipse for static import of org.mockito.Mockito.whenI 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.whenI am currently switching to Java 21 so far there are no real problems with Mockito. But one thing is

10/27/23

udemy course's profile photo

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

童虎's profile photo

童虎, Tim van der Lippe2

8/11/23

Site something is out of dateHappy to review a PR on https://github.com/mockito/mockito.github.io to fix this. Thanks for pointing

unread,

Site something is out of dateHappy to review a PR on https://github.com/mockito/mockito.github.io to fix this. Thanks for pointing

8/11/23

Annavi Kiran's profile photo

Annavi Kiran, Tim van der Lippe3

8/1/23

is mokito enterprice open source tool as of Aug 2023Hi 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 2023Hi Team, Thanks for the reply. Is Mockito open source tool and can we used across company for free.

8/1/23

Jiaqian Sun's profile photo

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's profile photo

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's profile photo

Thierry Euzenot, Brice Dutheil2

4/24/23

Mockito-inline update site for Eclipse RCP target platformHi 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 platformHi Thierry, Not sure if it's still relevant for you OSGi is merely adding the necessary entries

4/24/23

Tom Fewster's profile photo

Tom Fewster, … LINUS FERNANDES4

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's profile photo

Anton Oellerer2

3/30/23

Mocking is sometimes not applied when running a multi-class testsuiteI fixed this by annotating each class with `@DirtiesContext(classMode = DirtiesContext.ClassMode.

unread,

Mocking is sometimes not applied when running a multi-class testsuiteI fixed this by annotating each class with `@DirtiesContext(classMode = DirtiesContext.ClassMode.

3/30/23

Connor Kolan's profile photo

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's profile photo

Jörg von Frantzius

3/10/23

Improved support for generic types in 5.2.0Hi, I'm happy that PR Feature 2921 generic types by jfrantzius · Pull Request #2923 · mockito/

unread,

Improved support for generic types in 5.2.0Hi, I'm happy that PR Feature 2921 generic types by jfrantzius · Pull Request #2923 · mockito/

3/10/23

luo weilue's profile photo

luo weilue

2/11/23

Trouble understanding how a mock is createdHi 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 createdHi people, I am fairly new to mockito and I am trying understand how it works internally. By doing

2/11/23

王海航's profile photo

王海航

2/2/23

mockito behaves strange in multiple thread testHey, I'm running a scheduler implemented by multiple threads test , and using mockito to mock

unread,

mockito behaves strange in multiple thread testHey, I'm running a scheduler implemented by multiple threads test , and using mockito to mock

2/2/23

Kanika Arora's profile photo

Kanika Arora

1/19/23

Issue while upgrading mockito versionHi 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 versionHi 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's profile photo

deepak gupta

12/16/22

Inject mock into a SpyHi 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 SpyHi 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's profile photo

Yodgorbek Komilov

9/20/22

lateinit-property-fakeauthrepository-has-not-been-initialized-unit-testingI am using unit testing when I run test I am getting following exception lateinit property

unread,

lateinit-property-fakeauthrepository-has-not-been-initialized-unit-testingI am using unit testing when I run test I am getting following exception lateinit property

9/20/22

Flavio Bertini's profile photo

Flavio Bertini

8/18/22

JUnit for Serial Port method testingHello Everyone, I would like to test the method I have implemented for Serial Port communication.

unread,

JUnit for Serial Port method testingHello Everyone, I would like to test the method I have implemented for Serial Port communication.

8/18/22

Chris Dams's profile photo

Chris Dams, Tim van der Lippe2

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's profile photo

Evie Doe

8/8/22

Mockito AsyncTaskdo any one have an Idea to mock an AsyncTask Class method call or is it even possible? because I know

unread,

Mockito AsyncTaskdo 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's profile photo

Jitendra Holmes

7/20/22

Mockito ExceptionHi Mockito, org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class com.

unread,

Mockito ExceptionHi Mockito, org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class com.

7/20/22

Bara' Al-Jawarneh's profile photo

Bara' Al-Jawarneh

7/11/22

@mock value isn't refelcted when on @InjectMocksI'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 @InjectMocksI'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's profile photo

Moustafa Swelam, Tim van der Lippe3

6/13/22

Mockito compatibility with jdk 17thansk alot On Monday, June 13, 2022 at 10:46:39 AM UTC+2 tvande...@gmail.com wrote: Yes: https://

unread,

Mockito compatibility with jdk 17thansk alot On Monday, June 13, 2022 at 10:46:39 AM UTC+2 tvande...@gmail.com wrote: Yes: https://

6/13/22