|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Answer | |
|---|---|
| org.mockito | Mockito is a mock library for java - see Mockito class for for usage. |
| org.mockito.internal | Internal classes, not to be used by clients. |
| org.mockito.internal.progress | Mocking progress stateful classes. |
| org.mockito.internal.stubbing | Stubbing logic. |
| Uses of Answer in org.mockito |
|---|
| Methods in org.mockito with parameters of type Answer | |
|---|---|
static Stubber |
Mockito.doAnswer(Answer answer)
Use doAnswer() when you want to stub a void method with generic Answer. |
| Uses of Answer in org.mockito.internal |
|---|
| Method parameters in org.mockito.internal with type arguments of type Answer | |
|---|---|
void |
MockHandler.setAnswersForStubbing(java.util.List<Answer> answers)
|
| Uses of Answer in org.mockito.internal.progress |
|---|
| Methods in org.mockito.internal.progress with parameters of type Answer | |
|---|---|
OngoingStubbing<T> |
OngoingStubbing.toAnswer(Answer<?> answer)
Set a generic Answer for the stubbed method. |
| Uses of Answer in org.mockito.internal.stubbing |
|---|
| Classes in org.mockito.internal.stubbing that implement Answer | |
|---|---|
class |
DoesNothing
|
class |
Returns
|
class |
ThrowsException
|
| Methods in org.mockito.internal.stubbing that return Answer | |
|---|---|
Answer |
DontThrow.getAnswer()
|
| Methods in org.mockito.internal.stubbing with parameters of type Answer | |
|---|---|
void |
StubbedInvocationMatcher.addAnswer(Answer answer)
|
void |
MockitoStubber.addAnswer(Answer answer)
|
void |
MockitoStubber.addAnswerForVoidMethod(Answer answer)
|
void |
MockitoStubber.addConsecutiveAnswer(Answer answer)
|
Stubber |
StubberImpl.doAnswer(Answer answer)
|
Stubber |
Stubber.doAnswer(Answer answer)
Use it for stubbing consecutive calls in Mockito.doAnswer(Answer) style: |
VoidMethodStubbable<T> |
VoidMethodStubbable.toAnswer(Answer<?> answer)
Stubs a void method with generic Answer |
void |
AnswersValidator.validate(Answer<?> answer,
Invocation invocation)
|
| Method parameters in org.mockito.internal.stubbing with type arguments of type Answer | |
|---|---|
void |
MockitoStubber.setAnswersForStubbing(java.util.List<Answer> answers)
|
| Constructors in org.mockito.internal.stubbing with parameters of type Answer | |
|---|---|
DontThrow(Answer answer)
|
|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||