org.apache.openejb.test.mdb
Class MdbTestClient

java.lang.Object
  extended by junit.framework.Assert
      extended by org.apache.openejb.test.NumberedTestCase
          extended by org.apache.openejb.test.NamedTestCase
              extended by org.apache.openejb.test.mdb.MdbTestClient
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BasicMdbTests, BmtMdbAllowedOperationsTests, MdbAllowedOperationsTests, MdbAnnotatedFieldInjectionTests, MdbConnectionFactoryTests, MdbContextLookupTests, MdbFieldInjectionTests, MdbInterceptorTests, MdbJndiEncTests, MdbPojoContextLookupTests, MdbSetterInjectionTests

public abstract class MdbTestClient
extends NamedTestCase

Author:
David Blevins, Richard Monson-Haefel

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openejb.test.NumberedTestCase
NumberedTestCase.NamedTest, NumberedTestCase.TestSetup, NumberedTestCase.TestTearDown
 
Field Summary
protected  javax.jms.ConnectionFactory connectionFactory
           
protected  javax.naming.InitialContext initialContext
           
 
Fields inherited from class org.apache.openejb.test.NamedTestCase
testName
 
Fields inherited from class org.apache.openejb.test.NumberedTestCase
standardPrefix
 
Constructor Summary
MdbTestClient(java.lang.String name)
           
 
Method Summary
protected  javax.jms.Connection createConnection()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 
Methods inherited from class org.apache.openejb.test.NamedTestCase
name
 
Methods inherited from class org.apache.openejb.test.NumberedTestCase
countTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, 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
 

Field Detail

initialContext

protected javax.naming.InitialContext initialContext

connectionFactory

protected javax.jms.ConnectionFactory connectionFactory
Constructor Detail

MdbTestClient

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

setUp

protected void setUp()
              throws java.lang.Exception
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class NumberedTestCase
Throws:
java.lang.Exception

createConnection

protected javax.jms.Connection createConnection()
                                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.