Class JMSTestCase

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

public abstract 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@gmail.com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Admin
     
    static final String
     
    static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Fails a test with an exception which will be used for a message.
    protected Properties
    Should be overriden
    protected void
     
    protected void
     

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PROP_FILE_NAME

      public static final String PROP_FILE_NAME
      See Also:
    • startServer

      public static boolean startServer
    • admin

      protected Admin admin
  • Constructor Details

    • JMSTestCase

      public JMSTestCase(String name)
  • Method Details

    • fail

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

      protected Properties getProviderProperties() throws IOException
      Should be overriden
      Returns:
      Throws:
      IOException
    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class junit.framework.TestCase
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Overrides:
      tearDown in class junit.framework.TestCase
      Throws:
      Exception