Class and Description |
---|
org.mockito.BDDMockito.BDDOngoingStubbingImpl
not part of the public API, use
BDDMockito.BDDMyOngoingStubbing instead. |
org.mockito.BDDMockito.BDDStubberImpl
not part of the public API, use
BDDMockito.BDDStubber instead. |
org.mockito.junit.MockitoJUnitRule |
Enum and Description |
---|
org.mockito.internal.stubbing.defaultanswers.Answers |
Annotation Type and Description |
---|
org.mockito.MockitoAnnotations.Mock |
Method and Description |
---|
org.mockito.verification.VerificationWithTimeout.atMost(int)
Deprecated
Validation with timeout combined with never simply does not make sense, as atMost() will typically immediately pass,
and therefore not wait the timeout. The behaviour you may be looking for is actually provided by after().atMost().
To avoid compilation errors upon upgrade the method is deprecated and it throws a "friendly reminder" exception. In a future release we will remove timeout(x).atMost(y) and timeout(x).never() from the API. Do you want to find out more? See issue 235 |
org.mockito.internal.configuration.InjectingAnnotationEngine.createMockFor(Annotation, Field) |
org.mockito.configuration.AnnotationEngine.createMockFor(Annotation, Field)
Please use
AnnotationEngine.process(Class, Object) method instead that is more robust
Creates mock, ArgumentCaptor or wraps field instance in spy object. Only if of correct annotation type. |
org.mockito.internal.invocation.InvocationImpl.getArgumentAt(int, Class |
org.mockito.invocation.InvocationOnMock.getArgumentAt(int, Class |
org.mockito.verification.VerificationWithTimeout.never()
Validation with timeout combined with never simply does not make sense, as never() will typically immediately pass,
and therefore not wait the timeout. The behaviour you may be looking for is actually provided by after().never().
To avoid compilation errors upon upgrade the method is deprecated and it throws a "friendly reminder" exception. In a future release we will remove timeout(x).atMost(y) and timeout(x).never() from the API. Do you want to find out more? See issue 235 |
org.mockito.Mockito.stubVoid(T)
Use
Mockito.doThrow(Throwable...) method for stubbing voids |
Constructor and Description |
---|
org.mockito.junit.MockitoJUnitRule() |
org.mockito.junit.MockitoJUnitRule(MockitoLogger) |
org.mockito.junit.MockitoJUnitRule(Object) |