Arch4J 1.1

org.arch4j.dataaccess
Class DataAccessProviderTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.arch4j.dataaccess.DataAccessProviderTest
All Implemented Interfaces:
junit.framework.Test

public class DataAccessProviderTest
extends junit.framework.TestCase

This test assumes that the dataaccess.properties file exists with the following contents:

 junit1.driver=oracle.jdbc.driver.OracleDriver
 junit1.url=jdbc:oracle:thin:@vail:1521:spiderdb
 junit1.username=rbrown
 junit1.password=rbrown
 junit2.driver=oracle.jdbc.driver.OracleDriver
 junit2.url=jdbc:oracle:thin:@vail:1521:spiderdb
 junit3.driver=oracle.jdbc.driver.OracleDriver
 


Constructor Summary
DataAccessProviderTest(String name)
           
 
Method Summary
protected  void setUpData(DatabaseManager broker)
           
 void testBadLogicalName()
           
 void testSuccessful()
           
 void testSuccessUserPass()
           
 void testValidDriverBadURL()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataAccessProviderTest

public DataAccessProviderTest(String name)
Method Detail

testSuccessful

public void testSuccessful()

testSuccessUserPass

public void testSuccessUserPass()

testBadLogicalName

public void testBadLogicalName()

testValidDriverBadURL

public void testValidDriverBadURL()

setUpData

protected void setUpData(DatabaseManager broker)
                  throws SQLException
SQLException

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.