|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.TestContextHelper
Helper to create new TestContext
instances using existing contexts
as prototypes
Method Summary | |
static TestContext |
createConnectionContext(TestContext context)
Creates a new connection context with the same connection type as the supplied context. |
static TestContext |
createSendReceiveContext(TestContext context)
Creates a new send/receive context with the same details as the supplied context. |
static TestContext |
createSendReceiveContext(TestContext context,
boolean newConnection)
Creates a new send/receive context with the same details as the supplied context. |
static TestContext |
createSendReceiveContext(TestContext context,
boolean newConnection,
MessagingBehaviour behaviour)
Creates a new send/receive context with the same details as the supplied context, but with a different messaging behaviour. |
static TestContext |
createSessionContext(TestContext context)
Creates a new session context with the same session type as the supplied context. |
static TestContext |
createSessionContext(TestContext context,
AckType type)
Creates a new session context from a connection context |
static TestContext |
createSessionContext(TestContext context,
boolean newConnection)
Creates a new session context with the same session type as the supplied context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TestContext createConnectionContext(TestContext context) throws java.lang.Exception
context
- the prototype contextjava.lang.Exception
- for any errorpublic static TestContext createSessionContext(TestContext context) throws java.lang.Exception
context
- the prototype contextjava.lang.Exception
- for any errorpublic static TestContext createSessionContext(TestContext context, boolean newConnection) throws java.lang.Exception
context
- the prototype contextnewConnection
- if true
allocate a new connection,
otherwise use the existing onejava.lang.Exception
- for any errorpublic static TestContext createSessionContext(TestContext context, AckType type) throws java.lang.Exception
context
- the connection contexttype
- the message acknowledgement type of the sessionjava.lang.Exception
- for any errorpublic static TestContext createSendReceiveContext(TestContext context) throws java.lang.Exception
context
- the prototype contextjava.lang.Exception
- for any errorpublic static TestContext createSendReceiveContext(TestContext context, boolean newConnection) throws java.lang.Exception
context
- the prototype contextnewConnection
- if true
allocate a new connection,
otherwise use the existing onejava.lang.Exception
- for any errorpublic static TestContext createSendReceiveContext(TestContext context, boolean newConnection, MessagingBehaviour behaviour) throws java.lang.Exception
context
- the prototype contextnewConnection
- if true
allocate a new connection,
otherwise use the existing onebehaviour
- the messaging behaviourjava.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |