Uses of Interface
org.powermock.api.mockito.expectation.PowerMockitoStubber
-
Packages that use PowerMockitoStubber Package Description 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 Modifier and Type Method Description static PowerMockitoStubber
PowerMockito. doAnswer(org.mockito.stubbing.Answer<?> answer)
Use doAnswer() when you want to stub a void method with genericAnswer
.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(java.lang.Object toBeReturned)
Use doReturn() in those rare occasions when you cannot useMockito.when(Object)
.static PowerMockitoStubber
PowerMockito. doReturn(java.lang.Object toBeReturned, java.lang.Object... othersToBeReturned)
static PowerMockitoStubber
PowerMockito. doThrow(java.lang.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 Modifier and Type Method Description 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 Modifier and Type Class Description class
PowerMockitoStubberImpl
Extension of the standard Mocktio stubber implementation that also support PowerMockito created mocks.
-