Uses of Interface
org.powermock.api.mockito.expectation.PowerMockitoStubber
Packages that use PowerMockitoStubber
Package
Description
-
Uses of PowerMockitoStubber in org.powermock.api.mockito
Methods in org.powermock.api.mockito that return PowerMockitoStubberModifier and TypeMethodDescriptionstatic 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
Use doReturn() in those rare occasions when you cannot usePowerMockito.when(Object)
.static PowerMockitoStubber
Same asPowerMockito.doReturn(Object)
but sets consecutive values to be returned.static PowerMockitoStubber
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 PowerMockitoStubberModifier and TypeMethodDescriptionprivate PowerMockitoStubber
PowerMockitoCore.doAnswer
(org.mockito.stubbing.Answer answer) PowerMockitoCore.doCallRealMethod()
PowerMockitoCore.doNothing()
-
Uses of PowerMockitoStubber in org.powermock.api.mockito.internal.expectation
Classes in org.powermock.api.mockito.internal.expectation that implement PowerMockitoStubberModifier and TypeClassDescriptionclass
Extension of the standard Mocktio stubber implementation that also support PowerMockito created mocks.