org.objectweb.jonas.jtests.clients.distribution
Class F_Jdbc

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.distribution.F_Jdbc
All Implemented Interfaces:
junit.framework.Test

public class F_Jdbc
extends JTestCase

Test Jdbc accesses from a session bean Beans used: jdbc

Author:
Philippe Durieux

Field Summary
protected  Manager manager
           
protected static ManagerHome mhome
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_Jdbc(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testCloseConnection()
          Test we can close a Connection previously opened
 void testOpenCloseConnection()
          test we can create and close a Connection in the same method.
 void testOpenConnection()
          Test we can open a Connection
 
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase
debug, getDBEnv, random, sleep, tearDown, testEmpty, unloadBeans, useBeans
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Field Detail

mhome

protected static ManagerHome mhome

manager

protected Manager manager
Constructor Detail

F_Jdbc

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

setUp

protected void setUp()
Description copied from class: JTestCase
common setUp routine, used for every test.
Overrides:
setUp in class JTestCase

testOpenConnection

public void testOpenConnection()
                        throws java.lang.Exception
Test we can open a Connection

testCloseConnection

public void testCloseConnection()
                         throws java.lang.Exception
Test we can close a Connection previously opened

testOpenCloseConnection

public void testOpenCloseConnection()
                             throws java.lang.Exception
test we can create and close a Connection in the same method.

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)