|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Stubber | |
|---|---|
| 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.stubbing | Stubbing logic. |
| org.mockito.stubbing | External stubbing related classes |
| Uses of Stubber in org.mockito |
|---|
| Methods in org.mockito that return Stubber | |
|---|---|
static Stubber |
Mockito.doAnswer(Answer answer)
Use doAnswer() when you want to stub a void method with generic Answer. |
static Stubber |
Mockito.doCallRealMethod()
Use doCallRealMethod() when you want to call the real implementation of a method. |
static Stubber |
Mockito.doNothing()
Use doNothing() for setting void methods to do nothing. |
static Stubber |
Mockito.doReturn(java.lang.Object toBeReturned)
Use doReturn() in those rare occasions when you cannot use Mockito.when(Object). |
static Stubber |
Mockito.doThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown)
Use doThrow() when you want to stub the void method to throw exception of specified class. |
static Stubber |
Mockito.doThrow(java.lang.Throwable toBeThrown)
Use doThrow() when you want to stub the void method with an exception. |
| Constructors in org.mockito with parameters of type Stubber | |
|---|---|
BDDMockito.BDDStubberImpl(Stubber mockitoStubber)
|
|
| Uses of Stubber in org.mockito.internal |
|---|
| Methods in org.mockito.internal that return Stubber | |
|---|---|
Stubber |
MockitoCore.doAnswer(Answer answer)
|
| Uses of Stubber in org.mockito.internal.stubbing |
|---|
| Classes in org.mockito.internal.stubbing that implement Stubber | |
|---|---|
class |
StubberImpl
|
| Methods in org.mockito.internal.stubbing that return Stubber | |
|---|---|
Stubber |
StubberImpl.doAnswer(Answer answer)
|
Stubber |
StubberImpl.doNothing()
|
Stubber |
StubberImpl.doReturn(java.lang.Object toBeReturned)
|
Stubber |
StubberImpl.doThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown)
|
Stubber |
StubberImpl.doThrow(java.lang.Throwable toBeThrown)
|
| Uses of Stubber in org.mockito.stubbing |
|---|
| Methods in org.mockito.stubbing that return Stubber | |
|---|---|
Stubber |
Stubber.doAnswer(Answer answer)
Use it for stubbing consecutive calls in Mockito.doAnswer(Answer) style:
|
Stubber |
Stubber.doNothing()
Use it for stubbing consecutive calls in Mockito.doNothing() style:
|
Stubber |
Stubber.doReturn(java.lang.Object toBeReturned)
Use it for stubbing consecutive calls in Mockito.doReturn(Object) style. |
Stubber |
Stubber.doThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown)
Use it for stubbing consecutive calls in Mockito.doThrow(Class extends Throwable>) style:
|
Stubber |
Stubber.doThrow(java.lang.Throwable toBeThrown)
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||