KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
mockito
53 questions · page 1 of 2
Follow Tag
Sort by:
Newest
Votes
Active
13
votes
1
answers
Mockito - Mocking behaviour of a File
java
unit-testing
mockito
asked 2013-06-18T07:58:53.633
12
votes
1
answers
What does 'SRPy' stand for in the Mockito Documentation
java
android
oop
mockito
asked 2013-06-12T04:38:05.907
24
votes
1
answers
Mockito different behavior on subsequent calls to a void method?
java
mockito
asked 2013-06-10T17:28:22.583
8
votes
2
answers
NotAMockException while Mockito.verify(Object,VerificationMode.atleast(2))
java
testng
mockito
junit-ee
asked 2013-05-29T16:02:49.763
205
votes
7
answers
Mockito + PowerMock LinkageError while mocking system class
java
mockito
junit4
powermock
linkageerror
asked 2013-05-13T11:13:06.903
14
votes
3
answers
Mocking two objects of the same type with Mockito
mockito
asked 2013-03-18T19:23:42.827
22
votes
4
answers
How does Mockito @InjectMocks work?
spring
dependency-injection
mockito
autowired
asked 2013-03-05T16:16:21.917
195
votes
9
answers
Mockito: InvalidUseOfMatchersException
java
unit-testing
mockito
asked 2013-02-13T02:56:22.347
78
votes
4
answers
Calling callbacks with Mockito
java
testing
mockito
asked 2012-11-28T23:54:46.347
117
votes
7
answers
Mock a constructor with parameter
java
junit
mocking
mockito
powermock
asked 2012-11-13T16:17:10.363
81
votes
5
answers
Mockito verify after exception Junit 4.10
java
junit
mockito
junit-rule
asked 2012-11-05T00:00:02.450
9
votes
5
answers
Java `final` class and mocking
java
unit-testing
maven
mocking
mockito
asked 2012-10-30T13:01:50.737
13
votes
5
answers
Transactional annotation avoids services being mocked
spring
testng
mockito
transactional
asked 2012-10-12T11:22:54.750
37
votes
2
answers
Method equivalent for @InjectMocks
java
junit
mocking
mockito
asked 2012-10-12T07:35:41.157
27
votes
3
answers
How to mock a void return method affecting an object
java
mockito
asked 2012-09-14T17:19:25.563
15
votes
2
answers
Mockito: How do you verify the group order of certain groups of method calls?
java
unit-testing
tdd
mockito
verification
asked 2012-09-14T08:48:40.160
13
votes
2
answers
PowerMock static class does not mock
mocking
testng
static-methods
mockito
asked 2012-09-14T08:04:41.473
175
votes
4
answers
How to use ArgumentCaptor for stubbing?
java
unit-testing
junit
mockito
asked 2012-09-06T08:23:30.073
41
votes
2
answers
Mockito verify no more interactions with any mock
java
mockito
asked 2012-08-17T21:02:00.670
33
votes
4
answers
Mockito isA(Class<T> clazz) How to resolve type safety?
java
junit
mockito
java-5
asked 2012-08-17T19:46:30.073
8
votes
4
answers
Junit mockito when(..).thenReturn() throws NullPointerException
java
unit-testing
junit
mockito
asked 2012-08-15T12:52:49.293
10
votes
2
answers
Why does the Spring Autowire stops working when I add the "RunWith" annotation?
java
spring
mocking
mockito
powermock
asked 2012-07-13T20:32:42.873
162
votes
21
answers
when I run mockito test occurs WrongTypeOfReturnValue Exception
java
mockito
asked 2012-06-20T14:26:33.387
9
votes
2
answers
Mockito with Java async->sync converter
java
asynchronous
mockito
asked 2012-06-19T13:06:37.347
8
votes
3
answers
how can I mock the Context using Mockito and Robolectric?
android
unit-testing
mockito
robolectric
asked 2012-05-23T17:02:57.537
14
votes
2
answers
Mockito - mocking classes with native methods
java
gwt
mockito
native-methods
asked 2012-04-19T07:45:15.013
43
votes
3
answers
Mocking for integration tests
mocking
integration-testing
mockito
asked 2012-04-12T20:58:10.720
9
votes
1
answers
How do I mock java.lang.reflect.Method class in PowerMockito?
unit-testing
junit
mocking
mockito
powermock
asked 2012-03-29T15:20:39.033
13
votes
4
answers
Why EclEmma doesn't coverage code with tests with @RunWith(PowerMockRunner.class)
java
testing
junit
mockito
powermock
asked 2012-03-15T18:50:17.377
12
votes
5
answers
Testing outputstream.write(<String>) without creating a file
java
testing
tdd
mockito
asked 2012-02-17T12:26:42.417
168
votes
9
answers
Mocking member variables of a class using Mockito
java
mocking
mockito
asked 2012-01-24T22:58:34.687
184
votes
7
answers
How to verify multiple method calls with different params
java
mockito
asked 2011-12-14T11:57:52.080
67
votes
7
answers
mockito : how to unmock a method?
java
testing
mockito
spy
asked 2011-11-14T14:33:06.930
13
votes
2
answers
Major difference between: Mockito and JMockIt
junit
mocking
mockito
jmockit
asked 2011-10-08T22:14:38.227
50
votes
3
answers
Why Can't I access src/test/resources in Junit test run with Maven?
java
junit4
mockito
asked 2011-09-30T16:29:37.820
12
votes
4
answers
How do I use Powermockito to mock the construction of new objects when testing a method in an anonymous class?
java
mockito
anonymous-class
powermock
object-construction
asked 2011-09-23T01:39:31.240
27
votes
6
answers
mockito: Is there a way of capturing the return value of stubbed method?
java
mockito
asked 2011-08-31T08:06:51.587
101
votes
4
answers
mockito callbacks and getting argument values
java
unit-testing
mocking
mockito
asked 2011-07-08T23:58:21.240
17
votes
2
answers
How to test a method invocation inside an anonymous class using mockito
java
mocking
mockito
asked 2011-05-05T03:08:31.387
413
votes
9
answers
How to capture a list of specific type with mockito
java
unit-testing
junit
mockito
asked 2011-04-09T17:17:25.497
12
votes
2
answers
PowerMock, mockito, verify static method
java
mockito
powermock
asked 2011-03-12T21:49:40.470
10
votes
4
answers
How do I generate a custom message from a custom Mockito ArgumentMatcher?
mocking
mockito
asked 2011-02-19T15:51:07.387
11
votes
3
answers
How to mock object with constructor that takes a Class?
java
unit-testing
junit
mockito
powermock
asked 2011-02-10T16:03:27.517
19
votes
4
answers
PowerMock: mocking of static methods (+ return original values in some particular methods)
java
mocking
mockito
powermock
asked 2011-02-01T08:42:54.360
36
votes
1
answers
Using Mockito, how do I intercept a callback object on a void method?
java
unit-testing
callback
jaas
mockito
asked 2010-08-27T06:11:36.220
49
votes
2
answers
How to only throw exception when the mocked method is called for the first time?
unit-testing
mockito
mocking
asked 2010-08-16T22:56:52.977
132
votes
11
answers
Mockito How to mock only the call of a method of the superclass
java
mockito
asked 2010-08-12T12:50:20.917
22
votes
4
answers
Mockito preferrable over EasyMock?
java
unit-testing
mocking
easymock
mockito
asked 2010-06-27T13:41:19.863
963
votes
10
answers
Making a mocked method return an argument that was passed to it
java
mockito
asked 2010-04-21T16:11:41.877
212
votes
13
answers
How to properly match varargs in Mockito
java
mocking
variadic-functions
mockito
asked 2010-04-13T17:08:49.580
page 1 of 2
Next →