Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
mockito
Conversations
About
mockito
1–30 of 1216
Mark all as read
Report abusive group
0 selected
Anton Oellerer
Jan 20
Mocking is sometimes not applied when running a multi-class testsuite
Hey, I am testing a service which heavily relies on project reactor. For many tests I am mocking the
unread,
Mocking is sometimes not applied when running a multi-class testsuite
Hey, I am testing a service which heavily relies on project reactor. For many tests I am mocking the
Jan 20
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
Thierry Euzenot
9/12/22
Mockito-inline update site for Eclipse RCP target platform
Hello, Is there any update site where I can find OSGI plugin/feature for recent Mockito-inline. I saw
unread,
Mockito-inline update site for Eclipse RCP target platform
Hello, Is there any update site where I can find OSGI plugin/feature for recent Mockito-inline. I saw
9/12/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
Mirko Alicastro
2
2/1/22
Verify static methods calls in order
github issue: https://github.com/mockito/mockito/issues/2548 github PR: https://github.com/mockito/
unread,
Verify static methods calls in order
github issue: https://github.com/mockito/mockito/issues/2548 github PR: https://github.com/mockito/
2/1/22
Marcin Zajączkowski
,
Tim van der Lippe
2
1/26/22
Verification matcher for inline asserting
Hey Marcin, Yes, that makes sense to me. I think the best place to add this method would be `
unread,
Verification matcher for inline asserting
Hey Marcin, Yes, that makes sense to me. I think the best place to add this method would be `
1/26/22
mikael petterson
,
Mirko Alicastro
2
1/23/22
Mocking a
Hey Mike. You could use mockConstruction as below. @Test public void testInterruptedIOException() {
unread,
Mocking a
Hey Mike. You could use mockConstruction as below. @Test public void testInterruptedIOException() {
1/23/22
NeewBeWithInLine
,
rogerdpack
2
1/10/22
Issues with mockito-inline -4.0.0
Maybe ask on stackoverflow? On Saturday, October 9, 2021 at 10:35:38 AM UTC-6 NeewBeWithInLine wrote:
unread,
Issues with mockito-inline -4.0.0
Maybe ask on stackoverflow? On Saturday, October 9, 2021 at 10:35:38 AM UTC-6 NeewBeWithInLine wrote:
1/10/22
rogerdpack
1/10/22
Idea for spying final classes
I notice that with Mockito, assuming a logger instance is "final", you can't do logger
unread,
Idea for spying final classes
I notice that with Mockito, assuming a logger instance is "final", you can't do logger
1/10/22
Sócrates
,
rogerdpack
2
1/10/22
New in this group --- Question:why is it a common practice to use static import for methods?
Yeah it's a bit more confusing. For me it's because I use it SO MUCH that I might as well
unread,
New in this group --- Question:why is it a common practice to use static import for methods?
Yeah it's a bit more confusing. For me it's because I use it SO MUCH that I might as well
1/10/22
Wolf Sluyterman van Langeweyde
12/28/21
Mocking final method
Feedback was mentioned in https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/
unread,
Mocking final method
Feedback was mentioned in https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/
12/28/21
Thomas Wang
12/12/21
Potential bug with static mocked `Instant.now()` working with `DateTimeFormatter`
Within the `try` block for the mocked `Instant`, calling `format` failed with `NullPointerException`.
unread,
Potential bug with static mocked `Instant.now()` working with `DateTimeFormatter`
Within the `try` block for the mocked `Instant`, calling `format` failed with `NullPointerException`.
12/12/21
Balog Tamás
,
Brice Dutheil
4
12/6/21
Review request for Mockito IntelliJ plugin feature candidates
Hi again! A few days ago I released the first version of the plugin. You can find it at https://
unread,
Review request for Mockito IntelliJ plugin feature candidates
Hi again! A few days ago I released the first version of the plugin. You can find it at https://
12/6/21
barada sahoo
,
Ullrich Hafner
7
9/23/21
How to mock final class and final method
I removed powermock and used mockito- 3.12.4 Put mockito-extensions file in place. Find the
unread,
How to mock final class and final method
I removed powermock and used mockito- 3.12.4 Put mockito-extensions file in place. Find the
9/23/21
ashish chauhan
8/17/21
Mockito.mockConstruction provides null logger in the tested class
I have a Utility Class where a Logger is initialized in the following way: private static Logger log
unread,
Mockito.mockConstruction provides null logger in the tested class
I have a Utility Class where a Logger is initialized in the following way: private static Logger log
8/17/21
Lars Vogel
,
Allon Mureinik
3
8/10/21
Where is https://site.mockito.org/ maintained
Thanks. Looks good. On Thursday, August 5, 2021 at 2:44:37 PM UTC+2 mure...@gmail.com wrote: Haven
unread,
Where is https://site.mockito.org/ maintained
Thanks. Looks good. On Thursday, August 5, 2021 at 2:44:37 PM UTC+2 mure...@gmail.com wrote: Haven
8/10/21
Norbert Kiesel
,
John Buffington
2
7/27/21
Mockito 3 inline sometimes cannot initialize ThreadLocalRandom
We run into this problem occasionally when we run our tests under gradle (our one jar is a monolith
unread,
Mockito 3 inline sometimes cannot initialize ThreadLocalRandom
We run into this problem occasionally when we run our tests under gradle (our one jar is a monolith
7/27/21