R - The type for the reply callback.public class AnswerCallback<R> extends Object implements org.easymock.IArgumentMatcher
| Constructor and Description |
|---|
AnswerCallback()
Creates a new AnswerCallback.
|
AnswerCallback(R reply)
Creates a new AnswerCallback.
|
AnswerCallback(Throwable error)
Creates a new AnswerCallback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(StringBuffer buffer) |
static <T> ReplyCallback |
callback()
Helper for matching callbacks and triggering them at method invocation
time.
|
static ReplyCallback |
callback(Reply reply)
Helper for matching callbacks and triggering them at method invocation
time.
|
static <T> Callback<T> |
callback(T reply)
Helper for matching callbacks and triggering them at method invocation
time.
|
static <T> ReplyCallback |
callback(Throwable error)
Helper for matching callbacks and triggering them at method invocation
time.
|
boolean |
matches(Object argument) |
public AnswerCallback()
public AnswerCallback(R reply)
reply - The reply to provide the callbacks.public AnswerCallback(Throwable error)
error - The reply to provide the callbacks.public static <T> ReplyCallback callback()
nullpublic static ReplyCallback callback(Reply reply)
reply - The reply to give the callback when matching.nullpublic static <T> Callback<T> callback(T reply)
reply - The reply to give the callback when matching.nullpublic static <T> ReplyCallback callback(Throwable error)
error - The error to provide the callback.nullpublic void appendTo(StringBuffer buffer)
appendTo in interface org.easymock.IArgumentMatcherCopyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.