com.arsdigita.db.test
Class DatabaseApiTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.arsdigita.db.test.DatabaseApiTest
All Implemented Interfaces:
junit.framework.Test

public class DatabaseApiTest
extends junit.framework.TestCase

Test suite for the database API. To run from the command line, try java junit.textui.TestRunner com.arsdigita.db.test.DatabaseApiTest

Since:
ACS4.0

Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
DatabaseApiTest(java.lang.String name)
           
 
Method Summary
 void setUp()
          Sets up the fixture to run the test case.
 void tearDown()
          Release any resources needed for thet testcase, such as network connections, file descriptors, etc.
 void testClobAndBlob()
           
 void testCollectionInterpolation()
           
 void testDbExecPlSql()
           
 void testDbList()
           
 void testDbOneRow()
           
 void testDbSequence()
           
 void testDbString()
           
 void testDbTransaction()
           
 void testDbXml()
           
 void testForeach()
           
 void testMultiRow()
           
 void testSqlFragmentInterpolation()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

DatabaseApiTest

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

setUp

public void setUp()
Sets up the fixture to run the test case. Initialize variables, open network connections, file descriptors, as necessary here.
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Release any resources needed for thet testcase, such as network connections, file descriptors, etc.
Overrides:
tearDown in class junit.framework.TestCase

testDbString

public void testDbString()

testSqlFragmentInterpolation

public void testSqlFragmentInterpolation()

testCollectionInterpolation

public void testCollectionInterpolation()

testDbOneRow

public void testDbOneRow()

testDbSequence

public void testDbSequence()

testDbTransaction

public void testDbTransaction()

testMultiRow

public void testMultiRow()

testClobAndBlob

public void testClobAndBlob()

testForeach

public void testForeach()

testDbXml

public void testDbXml()

testDbExecPlSql

public void testDbExecPlSql()

testDbList

public void testDbList()