|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.test.framework.MessageIdentityVector
public class MessageIdentityVector
MessageIdentityVector provides a message identification scheme, that matches individual messages with test cases. Test messages are being sent by a number of test clients, sending messages over a set of routes, and being received by another set of test clients. Each test is itself, being run within a test cycle, of which there could be many. It is the job of the test coordinator to request and receive reports from the available test clients, on what has been sent, what has been received, and what errors may have occurred, and to reconcile this information against the assertions being applied by the test case. In order to be able to figure out which messages belong to which test, there needs to be an identification scheme, that the coordinator can use to correlate messages in senders and receiver reports. Every message sent in a test can be associated with this information.
Responsibilities | Collaborations |
---|---|
Identify a test case, a handling client id, a circuit end within the client, and a test cycle number. |
Constructor Summary | |
---|---|
MessageIdentityVector(String testCase,
String clientId,
int circuitEndId,
int testCycleNumber)
Creates a new identity vector for test messages. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares this identity vector with another for equality. |
int |
getCircuitEndId()
Reports the circuit end number within the test client. |
String |
getClientId()
Resports the client id. |
String |
getTestCase()
Reports the name of the test case. |
TestCaseVector |
getTestCaseVector()
Reports the test case vector component of the message identity vector. |
int |
getTestCycleNumber()
Reports the test iteration cycle number within the test case. |
int |
hashCode()
Computes a hash code for this identity vector based on all fields. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageIdentityVector(String testCase, String clientId, int circuitEndId, int testCycleNumber)
testCase
- The name of the test case generating the messages.clientId
- The unique id of the client implementing a circuit end that is handling the messages.circuitEndId
- The unique id number of the circuit end within the client.testCycleNumber
- The cycle iteration number of the test case.Method Detail |
---|
public TestCaseVector getTestCaseVector()
public String getTestCase()
public int getTestCycleNumber()
public String getClientId()
public int getCircuitEndId()
public boolean equals(Object o)
equals
in class Object
o
- The identity vector to compare with.
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |