org.powermock.core.spi.support
Interface InvocationSubstitute<T>
public interface InvocationSubstitute<T>
A class that can be used as a substitution instead of mocking a particular
class. For example when mocking a new instance call you can fake the
constructor invocation by creating a mock object (A) for this class and
invoke the performSubstitutionLogic(Object...)
method instead with
the constructor arguments. The interception process must take care of doing
this. Also remember that behaviors such as replay and/or verify must be
performed on (A).
performSubstitutionLogic
T performSubstitutionLogic(Object... arguments)
throws Exception
- Throws:
Exception
Copyright © 2007-2012. All Rights Reserved.