public class MethodStubStrategyImpl<T> extends Object implements MethodStubStrategy<T>
Constructor and Description |
---|
MethodStubStrategyImpl(Method method) |
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–2013. All rights reserved.