com.redhat.rhn.common.db.datasource.test
Class AdvDataSourceTest

java.lang.Object
  extended by TestCase
      extended by com.redhat.rhn.testing.RhnBaseTestCase
          extended by com.redhat.rhn.common.db.datasource.test.AdvDataSourceTest

public class AdvDataSourceTest
extends RhnBaseTestCase


Constructor Summary
AdvDataSourceTest(java.lang.String name)
           
 
Method Summary
protected static void oneTimeSetup()
           
protected static void oneTimeTeardown()
           
static Test suite()
           
 void testCollectionCreate()
           
 void testDate()
          Test for ModeFactory.getMode methods
 void testDelete()
           
 void testFoo()
           
 void testGetCallable()
           
 void testInClause()
           
 void testInsert()
           
 void testMaxRows()
           
 void testMaxRowsWithElaboration()
           
 void testModes()
          Test for ModeFactory.getMode methods
 void testSelectInWithParams()
           
 void testStoredProcedureJDBC()
           
 void testStoredProcedureOracle()
           
 void testStressedElaboration()
           
 void testUpdate()
           
 void testUpdateMultiple()
          This test makes sure we can call "execute" multiple times and re-use the existing internal transaction within the CommitableMode
 
Methods inherited from class com.redhat.rhn.testing.RhnBaseTestCase
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvDataSourceTest

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

testDate

public void testDate()
Test for ModeFactory.getMode methods


testMaxRows

public void testMaxRows()

testModes

public void testModes()
Test for ModeFactory.getMode methods


testInsert

public void testInsert()
                throws java.lang.Exception
Throws:
java.lang.Exception

testDelete

public void testDelete()
                throws java.lang.Exception
Throws:
java.lang.Exception

testUpdate

public void testUpdate()
                throws java.lang.Exception
Throws:
java.lang.Exception

testUpdateMultiple

public void testUpdateMultiple()
                        throws java.lang.Exception
This test makes sure we can call "execute" multiple times and re-use the existing internal transaction within the CommitableMode

Throws:
java.lang.Exception

testGetCallable

public void testGetCallable()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testCollectionCreate

public void testCollectionCreate()

testStoredProcedureJDBC

public void testStoredProcedureJDBC()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testStoredProcedureOracle

public void testStoredProcedureOracle()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testInClause

public void testInClause()

testStressedElaboration

public void testStressedElaboration()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testMaxRowsWithElaboration

public void testMaxRowsWithElaboration()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testSelectInWithParams

public void testSelectInWithParams()
                            throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static Test suite()
                  throws java.lang.Exception
Throws:
java.lang.Exception

oneTimeSetup

protected static void oneTimeSetup()
                            throws java.lang.Exception
Throws:
java.lang.Exception

oneTimeTeardown

protected static void oneTimeTeardown()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testFoo

public void testFoo()