MethodStubStrategy<T>
public class MethodStubStrategyImpl<T> extends Object implements MethodStubStrategy<T>
Constructor | Description |
---|---|
MethodStubStrategyImpl(Method method) |
Modifier and Type | Method | Description |
---|---|---|
void |
andReturn(T returnValue) |
Deprecated.
|
void |
toReturn(T returnValue) |
Stubs the method to return the specified returnValue.
|
void |
toThrow(Throwable throwable) |
Stubs the method to throw the specified throwable.
|
public MethodStubStrategyImpl(Method method)
@Deprecated public void andReturn(T returnValue)
MethodStubStrategy
andReturn
in interface MethodStubStrategy<T>
returnValue
- The value that will be returned.public void toThrow(Throwable throwable)
MethodStubStrategy
toThrow
in interface MethodStubStrategy<T>
throwable
- the throwablepublic void toReturn(T returnValue)
MethodStubStrategy
toReturn
in interface MethodStubStrategy<T>
returnValue
- The value that will be returned.Copyright © 2007–2019. All rights reserved.