|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestClientControlledTest
TestClientControlledTest provides an interface that classes implementing test cases to run on a TestClient
node can use. Implementations must be Java beans, that is, to provide a default constructor and to implement the
getName()
method.
TestClient
receives control instructions to
apply to the test. There are control instructions to present the test case with the test invite, so that it may
choose whether or not to participate in the test, assign the test to play the sender or receiver role, start the
test and obtain the test status report.
Responsibilities |
---|
Supply the name of the test case that this implements. |
Accept/Reject invites based on test parameters. |
Adapt to assigned roles. |
Perform test case actions. |
Generate test reports. |
Nested Class Summary | |
---|---|
static class |
TestClientControlledTest.Roles
Defines the possible test case roles that an interop test case can take on. |
Method Summary | |
---|---|
boolean |
acceptInvite(Message inviteMessage)
Determines whether the test invite that matched this test case is acceptable. |
void |
assignRole(TestClientControlledTest.Roles role,
Message assignRoleMessage)
Assigns the role to be played by this test case. |
String |
getName()
Should provide the name of the test case that this class implements. |
Message |
getReport(Session session)
Gets a report on the actions performed by the test case in its assigned role. |
void |
start(int numMessages)
Performs the test case actions. |
Method Detail |
---|
String getName()
boolean acceptInvite(Message inviteMessage) throws JMSException
inviteMessage
- The invitation to accept or reject.
JMSException
- Any JMSException resulting from reading the message are allowed to fall through.void assignRole(TestClientControlledTest.Roles role, Message assignRoleMessage) throws JMSException
role
- The role to be played; sender or receivers.assignRoleMessage
- The role assingment message, contains the full test parameters.
JMSException
- Any JMSException resulting from reading the message are allowed to fall through.void start(int numMessages) throws JMSException
numMessages
- The number of test messages to send.
JMSException
- Any JMSException resulting from reading the message are allowed to fall through.Message getReport(Session session) throws JMSException
session
- The controlSession to create the report message in.
JMSException
- Any JMSExceptions resulting from creating the report are allowed to fall through.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |