|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - class of the requestS - class of the responsepublic interface Verification<T extends Packet,S extends Packet>
Implement this interface to verify a request/response pair.
For convenience there are some useful predefined implementations.
| Field Summary | |
|---|---|
static Verification<Packet,Packet> |
correspondingSenderReceiver
Verifies that the "To" field of the request corresponds with the "From" field of the response. |
static Verification<IQ,Packet> |
requestTypeERROR
Verifies that the type of the request is an ERROR. |
static Verification<IQ,Packet> |
requestTypeGET
Verifies that the type of the request is a GET. |
static Verification<IQ,Packet> |
requestTypeRESULT
Verifies that the type of the request is a RESULT. |
static Verification<IQ,Packet> |
requestTypeSET
Verifies that the type of the request is a SET. |
| Method Summary | |
|---|---|
void |
verify(T request,
S response)
Implement this method to make assertions of the request/response pairs. |
| Field Detail |
|---|
static final Verification<Packet,Packet> correspondingSenderReceiver
static final Verification<IQ,Packet> requestTypeGET
static final Verification<IQ,Packet> requestTypeSET
static final Verification<IQ,Packet> requestTypeRESULT
static final Verification<IQ,Packet> requestTypeERROR
| Method Detail |
|---|
void verify(T request,
S response)
request - the request collected by the mocked XMPP connectionresponse - the response added to the protocol instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||