Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectweb.jtests.jms.framework
Class JMSTestCase  view JMSTestCase download JMSTestCase.java

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

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.1 2002/04/21 21:15:19 chirino Exp $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
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 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
 
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).