T
- The type of value expected by the callback.public class CallbackCapture<T> extends org.easymock.Capture<Callback<T>>
EasyMock
mock.Constructor and Description |
---|
CallbackCapture(T reply)
Creates a new CallbackCapture.
|
CallbackCapture(Throwable error)
Creates a new CallbackCapture.
|
Modifier and Type | Method and Description |
---|---|
static <T> Callback<T> |
callback(T value)
Creates a new CallbackCapture.
|
static <T> Callback<T> |
callback(Throwable error)
Creates a new CallbackCapture.
|
static <T> Callback<T> |
callbackError()
Creates a new CallbackCapture.
|
void |
setValue(Callback<T> value) |
public CallbackCapture(T reply)
reply
- The reply to provide to the callback.public CallbackCapture(Throwable error)
error
- The error to provide to the callback.public static <T> Callback<T> callback(T value)
value
- The value to provide to the callback.public static <T> Callback<T> callback(Throwable error)
error
- The error to provide to the callback.public static <T> Callback<T> callbackError()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.