org.objectweb.jtests.jms.framework
Class JMSTestCase

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.jtests.jms.framework.JMSTestCase
Direct Known Subclasses:
MessageDefaultTest (src) , PTPTestCase (src) , PubSubTestCase (src)

public class JMSTestCase
extends TestCase

Class extending junit.framework.TestCase to provide a new fail() method with an Exception as parameter.
Every Test Case for JMS should extend this class instead of junit.framework.TestCase

See Also:
Serialized Form

Constructor Summary
JMSTestCase(java.lang.String name)
           
 
Method Summary
 void fail(java.lang.Exception e)
          Fails a test with an exception which will be used for a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSTestCase

public JMSTestCase(java.lang.String name)
Method Detail

fail

public void fail(java.lang.Exception e)
Fails a test with an exception which will be used for a message. If the exception is an instance of javax.jms.JMSException, the message of the failure will contained both the JMSException and its linked exception (provided there's one).