|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use PowerMockitoStubber | |
---|---|
org.powermock.api.mockito | |
org.powermock.api.mockito.internal | |
org.powermock.api.mockito.internal.expectation |
Uses of PowerMockitoStubber in org.powermock.api.mockito |
---|
Methods in org.powermock.api.mockito that return PowerMockitoStubber | |
---|---|
static PowerMockitoStubber |
PowerMockito.doAnswer(org.mockito.stubbing.Answer<?> answer)
Use doAnswer() when you want to stub a void method with generic Answer . |
static PowerMockitoStubber |
PowerMockito.doCallRealMethod()
Use doCallRealMethod() when you want to call the real implementation of a method. |
static PowerMockitoStubber |
PowerMockito.doNothing()
Use doNothing() for setting void methods to do nothing. |
static PowerMockitoStubber |
PowerMockito.doReturn(Object toBeReturned)
Use doReturn() in those rare occasions when you cannot use Mockito.when(Object) . |
static PowerMockitoStubber |
PowerMockito.doThrow(Throwable toBeThrown)
Use doThrow() when you want to stub the void method with an exception. |
Uses of PowerMockitoStubber in org.powermock.api.mockito.internal |
---|
Methods in org.powermock.api.mockito.internal that return PowerMockitoStubber | |
---|---|
PowerMockitoStubber |
PowerMockitoCore.doAnswer(org.mockito.stubbing.Answer answer)
|
Uses of PowerMockitoStubber in org.powermock.api.mockito.internal.expectation |
---|
Classes in org.powermock.api.mockito.internal.expectation that implement PowerMockitoStubber | |
---|---|
class |
PowerMockitoStubberImpl
Extension of the standard Mocktio stubber implementation that also support PowerMockito created mocks. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |