public class CallbackReply extends Object
EasyMock
mock.Modifier and Type | Method and Description |
---|---|
static ReplyCallback |
cb(DocumentBuilder... builders)
Creates a new CallbackReply.
|
static ReplyCallback |
cb(Reply reply)
Creates a new CallbackReply.
|
static ReplyCallback |
cb(Throwable error)
Creates a new CallbackReply.
|
static ReplyCallback |
cbError()
Creates a new CallbackReply.
|
static Reply |
reply(DocumentBuilder... builders)
Creates a reply with the specified document.
|
public static ReplyCallback cb(DocumentBuilder... builders)
builders
- The reply to provide to the callback.public static ReplyCallback cb(Reply reply)
reply
- The reply to provide to the callback.public static ReplyCallback cb(Throwable error)
error
- The error to provide to the callback.public static ReplyCallback cbError()
public static Reply reply(DocumentBuilder... builders)
builders
- The builder for the reply document.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.