org.apache.cactus
Class JmsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.cactus.internal.AbstractCactusTestCase
              extended by org.apache.cactus.JmsTestCase
All Implemented Interfaces:
junit.framework.Test

public class JmsTestCase
extends AbstractCactusTestCase

TestCase class to test Message Driven Beans (or any JMS listener for that matter).

Since:
1.4
Version:
$Id$
Author:
Vincent Massol

Field Summary
 javax.ejb.MessageDrivenContext context
          Valid MessageDrivenContext object that you can access from the testXXX(), setUp and tearDown() methods.
 javax.jms.Message message
          Valid Message object that you can access from the testXXX(), setUp and tearDown() methods.
 
Constructor Summary
JmsTestCase()
           
JmsTestCase(java.lang.String theName)
          Constructs a JUnit test case with the given name.
JmsTestCase(java.lang.String theName, junit.framework.Test theTest)
          Constructs a JUnit test case with the given name.
 
Method Summary
protected  ProtocolHandler createProtocolHandler()
          Create a protocol handler instance that will be used to connect to the server side.
 
Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase
runBare, runBareServer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public javax.jms.Message message
Valid Message object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.


context

public javax.ejb.MessageDrivenContext context
Valid MessageDrivenContext object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.

Constructor Detail

JmsTestCase

public JmsTestCase()
See Also:
AbstractCactusTestCase.AbstractCactusTestCase()

JmsTestCase

public JmsTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name.

Parameters:
theName - the name of the test case

JmsTestCase

public JmsTestCase(java.lang.String theName,
                   junit.framework.Test theTest)
Constructs a JUnit test case with the given name.

Parameters:
theName - the name of the test case
Method Detail

createProtocolHandler

protected ProtocolHandler createProtocolHandler()
Create a protocol handler instance that will be used to connect to the server side.

Specified by:
createProtocolHandler in class AbstractCactusTestCase
Returns:
the protocol handler instance
See Also:
AbstractCactusTestCase.createProtocolHandler()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.