org.openejb.test.stateless
Class StatelessContainerTxTests

java.lang.Object
  extended by junit.framework.Assert
      extended by org.openejb.test.NumberedTestCase
          extended by org.openejb.test.NamedTestCase
              extended by org.openejb.test.stateless.StatelessContainerTxTests
All Implemented Interfaces:
junit.framework.Test

public class StatelessContainerTxTests
extends NamedTestCase

[1] Should be run as the first test suite of the StatelessTestClients

Author:
David Blevins, Richard Monson-Haefel

Field Summary
protected  javax.ejb.Handle ejbHandle
           
protected  ContainerTxStatelessHome ejbHome
           
protected  javax.ejb.HomeHandle ejbHomeHandle
           
protected  javax.ejb.EJBMetaData ejbMetaData
           
protected  ContainerTxStatelessObject ejbObject
           
protected  java.lang.Integer ejbPrimaryKey
           
protected  javax.naming.InitialContext initialContext
           
static java.lang.String jndiEJBHomeEntry
           
 
Fields inherited from class org.openejb.test.NamedTestCase
testName
 
Fields inherited from class org.openejb.test.NumberedTestCase
standardPrefix
 
Constructor Summary
StatelessContainerTxTests()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void test01_txMandatory_withoutTx_appException()
           
 void test01_txMandatory_withoutTx_sysException()
           
 void test01_txMandatory_withoutTx()
           
 void test02_txNever_withoutTx_appException()
           
 void test02_txNever_withoutTx_sysException()
           
 void test02_txNever_withoutTx()
           
 void test03_txNotSupported_withoutTx_appException()
           
 void test03_txNotSupported_withoutTx_sysException()
           
 void test03_txNotSupported_withoutTx()
           
 void test04_txRequired_withoutTx_appException()
           
 void test04_txRequired_withoutTx_sysException()
           
 void test04_txRequired_withoutTx()
           
 void test05_txRequiresNew_withoutTx_appException()
           
 void test05_txRequiresNew_withoutTx_sysException()
           
 void test05_txRequiresNew_withoutTx()
           
 void test06_txSupports_withoutTx_appException()
           
 void test06_txSupports_withoutTx_sysException()
           
 void test06_txSupports_withoutTx()
           
 void test07_txMandatory_withTx_appException()
           
 void test07_txMandatory_withTx_sysException()
           
 void test07_txMandatory_withTx()
           
 void test08_txNever_withTx_appException()
           
 void test08_txNever_withTx_sysException()
           
 void test08_txNever_withTx()
           
 void test09_txNotSupported_withTx_appException()
           
 void test09_txNotSupported_withTx_sysException()
           
 void test09_txNotSupported_withTx()
           
 void test10_txRequired_withTx_appException()
           
 void test10_txRequired_withTx_sysException()
           
 void test10_txRequired_withTx()
           
 void test11_txRequiresNew_withTx_appException()
           
 void test11_txRequiresNew_withTx_sysException()
           
 void test11_txRequiresNew_withTx()
           
 void test12_txSupports_withTx_appException()
           
 void test12_txSupports_withTx_sysException()
           
 void test12_txSupports_withTx()
           
 
Methods inherited from class org.openejb.test.NamedTestCase
name
 
Methods inherited from class org.openejb.test.NumberedTestCase
countTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jndiEJBHomeEntry

public static final java.lang.String jndiEJBHomeEntry
See Also:
Constant Field Values

ejbHome

protected ContainerTxStatelessHome ejbHome

ejbObject

protected ContainerTxStatelessObject ejbObject

ejbMetaData

protected javax.ejb.EJBMetaData ejbMetaData

ejbHomeHandle

protected javax.ejb.HomeHandle ejbHomeHandle

ejbHandle

protected javax.ejb.Handle ejbHandle

ejbPrimaryKey

protected java.lang.Integer ejbPrimaryKey

initialContext

protected javax.naming.InitialContext initialContext
Constructor Detail

StatelessContainerTxTests

public StatelessContainerTxTests()
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

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

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

test01_txMandatory_withoutTx

public void test01_txMandatory_withoutTx()

test02_txNever_withoutTx

public void test02_txNever_withoutTx()

test03_txNotSupported_withoutTx

public void test03_txNotSupported_withoutTx()

test04_txRequired_withoutTx

public void test04_txRequired_withoutTx()

test05_txRequiresNew_withoutTx

public void test05_txRequiresNew_withoutTx()

test06_txSupports_withoutTx

public void test06_txSupports_withoutTx()

test07_txMandatory_withTx

public void test07_txMandatory_withTx()

test08_txNever_withTx

public void test08_txNever_withTx()

test09_txNotSupported_withTx

public void test09_txNotSupported_withTx()

test10_txRequired_withTx

public void test10_txRequired_withTx()

test11_txRequiresNew_withTx

public void test11_txRequiresNew_withTx()

test12_txSupports_withTx

public void test12_txSupports_withTx()

test01_txMandatory_withoutTx_appException

public void test01_txMandatory_withoutTx_appException()

test02_txNever_withoutTx_appException

public void test02_txNever_withoutTx_appException()

test03_txNotSupported_withoutTx_appException

public void test03_txNotSupported_withoutTx_appException()

test04_txRequired_withoutTx_appException

public void test04_txRequired_withoutTx_appException()

test05_txRequiresNew_withoutTx_appException

public void test05_txRequiresNew_withoutTx_appException()

test06_txSupports_withoutTx_appException

public void test06_txSupports_withoutTx_appException()

test07_txMandatory_withTx_appException

public void test07_txMandatory_withTx_appException()

test08_txNever_withTx_appException

public void test08_txNever_withTx_appException()

test09_txNotSupported_withTx_appException

public void test09_txNotSupported_withTx_appException()

test10_txRequired_withTx_appException

public void test10_txRequired_withTx_appException()

test11_txRequiresNew_withTx_appException

public void test11_txRequiresNew_withTx_appException()

test12_txSupports_withTx_appException

public void test12_txSupports_withTx_appException()

test01_txMandatory_withoutTx_sysException

public void test01_txMandatory_withoutTx_sysException()

test02_txNever_withoutTx_sysException

public void test02_txNever_withoutTx_sysException()

test03_txNotSupported_withoutTx_sysException

public void test03_txNotSupported_withoutTx_sysException()

test04_txRequired_withoutTx_sysException

public void test04_txRequired_withoutTx_sysException()

test05_txRequiresNew_withoutTx_sysException

public void test05_txRequiresNew_withoutTx_sysException()

test06_txSupports_withoutTx_sysException

public void test06_txSupports_withoutTx_sysException()

test07_txMandatory_withTx_sysException

public void test07_txMandatory_withTx_sysException()

test08_txNever_withTx_sysException

public void test08_txNever_withTx_sysException()

test09_txNotSupported_withTx_sysException

public void test09_txNotSupported_withTx_sysException()

test10_txRequired_withTx_sysException

public void test10_txRequired_withTx_sysException()

test11_txRequiresNew_withTx_sysException

public void test11_txRequiresNew_withTx_sysException()

test12_txSupports_withTx_sysException

public void test12_txSupports_withTx_sysException()


Copyright © 1999-2011 OpenEJB. All Rights Reserved.