org.objectweb.jtests.jms.framework
Class JMSTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.objectweb.jtests.jms.framework.JMSTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
MessageDefaultTest, PTPTestCase, PubSubTestCase, UnifiedTestCase

public class JMSTestCase
extends junit.framework.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

Version:
$Id: JMSTestCase.java,v 1.2 2007/07/19 21:20:08 csuconic Exp $
Author:
Jeff Mesnil (jmesnil@inrialpes.fr)

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.
protected  java.util.Properties getProviderProperties()
          Should be overriden
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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).


getProviderProperties

protected java.util.Properties getProviderProperties()
                                              throws java.io.IOException
Should be overriden

Returns:
Throws:
java.io.IOException


Copyright © 2010 JBoss, A division of Red Hat. All Rights Reserved.