public class DefaultResultStub extends java.lang.Object implements Stub
| Constructor and Description |
|---|
DefaultResultStub() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(java.lang.Class resultType,
java.lang.Object resultValue) |
protected void |
createDefaultResults() |
java.lang.String |
createErrorMessage(Invocation call) |
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buf)
Appends the description of this object to the buffer.
|
java.lang.Object |
invoke(Invocation invocation)
Processes the invocation.
|
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buf)
SelfDescribingdescribeTo in interface SelfDescribingbuf - The buffer that the description is appended to.public void addResult(java.lang.Class resultType,
java.lang.Object resultValue)
public java.lang.Object invoke(Invocation invocation) throws java.lang.Throwable
Stubinvoke in interface Stubinvocation - The invocation to stub.null if the invocation is of a invokedMethod with a void return type.java.lang.Throwable - An exception to be thrown to the caller, if not returning a value. A checked exception
thrown from this invokedMethod must be in the throws list of the invoked method.public java.lang.String createErrorMessage(Invocation call)
protected void createDefaultResults()