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 PowerMockitoStubberPowerMockito.doAnswer(org.mockito.stubbing.Answer<?> answer) Use doAnswer() when you want to stub a void method with genericAnswer.static PowerMockitoStubberPowerMockito.doCallRealMethod()Use doCallRealMethod() when you want to call the real implementation of a method.static PowerMockitoStubberPowerMockito.doNothing()Use doNothing() for setting void methods to do nothing.static PowerMockitoStubberUse doReturn() in those rare occasions when you cannot usePowerMockito.when(Object).static PowerMockitoStubberSame asPowerMockito.doReturn(Object)but sets consecutive values to be returned.static PowerMockitoStubberUse 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 PowerMockitoStubberPowerMockitoCore.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 TypeClassDescriptionclassExtension of the standard Mocktio stubber implementation that also support PowerMockito created mocks.