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
Every Test Case for JMS should extend this class instead of
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFails a test with an exception which will be used for a message.protected PropertiesShould be overridenprotected voidsetUp()protected voidtearDown()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
-
Field Details
-
PROP_FILE_NAME
- See Also:
-
startServer
public static boolean startServer -
admin
-
-
Constructor Details
-
JMSTestCase
-
-
Method Details
-
fail
Fails a test with an exception which will be used for a message. If the exception is an instance ofjakarta.jms.JMSException, the message of the failure will contained both the JMSException and its linked exception (provided there's one). -
getProviderProperties
Should be overriden- Returns:
- Throws:
IOException
-
setUp
- Overrides:
setUpin classjunit.framework.TestCase- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classjunit.framework.TestCase- Throws:
Exception
-