org.asyrinx.joey.test.dao
クラス DBTestCase

java.lang.Object
  拡張TestCase
      拡張org.asyrinx.joey.test.dao.S2TestCaseBase
          拡張org.asyrinx.joey.test.dao.DBTestCase
直系の既知のサブクラス:
DBTestCaseTx

public abstract class DBTestCase
extends S2TestCaseBase

DBUnitのテストケースにS2TestCaseのコンテナ関係とDB接続の機能だけを付けたテストケースです。

作成者:
akima
関連項目:
直列化された形式

フィールドの概要
 
クラス org.asyrinx.joey.test.dao.S2TestCaseBase から継承したフィールド
container_
 
コンストラクタの概要
DBTestCase(java.lang.String name)
           
 
メソッドの概要
protected  void closeConnection(org.dbunit.database.IDatabaseConnection connection)
          Close the specified connection.
protected  void executeRunBare()
           
 java.sql.Connection getConnection()
           
protected abstract  org.dbunit.dataset.IDataSet getDataSet()
          Returns the test dataset.
 javax.sql.DataSource getDataSource()
           
protected  org.dbunit.database.IDatabaseConnection getDBUnitConnection()
          Returns the test database connection.
protected  org.dbunit.operation.DatabaseOperation getSetUpOperation()
          Returns the database operation executed in test setup.
protected  org.dbunit.operation.DatabaseOperation getTearDownOperation()
          Returns the database operation executed in test cleanup.
protected  void setUp()
           
protected  void tearDown()
           
 
クラス org.asyrinx.joey.test.dao.S2TestCaseBase から継承したメソッド
afterSetupContainer, getComponent, getComponent, getComponentDef, getComponentDef, getContainer, include, register, register, register, register, register, runBare, setUpContainer
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DBTestCase

public DBTestCase(java.lang.String name)
メソッドの詳細

getDataSource

public javax.sql.DataSource getDataSource()

getConnection

public java.sql.Connection getConnection()

executeRunBare

protected void executeRunBare()
                       throws java.lang.Throwable
オーバーライド:
クラス S2TestCaseBase 内の executeRunBare
例外:
java.lang.Throwable

getDataSet

protected abstract org.dbunit.dataset.IDataSet getDataSet()
                                                   throws java.lang.Exception
Returns the test dataset.

例外:
java.lang.Exception

getDBUnitConnection

protected org.dbunit.database.IDatabaseConnection getDBUnitConnection()
                                                               throws java.lang.Exception
Returns the test database connection.

例外:
java.lang.Exception

closeConnection

protected void closeConnection(org.dbunit.database.IDatabaseConnection connection)
                        throws java.lang.Exception
Close the specified connection. Ovverride this method of you want to keep your connection alive between tests.

例外:
java.lang.Exception

getSetUpOperation

protected org.dbunit.operation.DatabaseOperation getSetUpOperation()
                                                            throws java.lang.Exception
Returns the database operation executed in test setup.

例外:
java.lang.Exception

getTearDownOperation

protected org.dbunit.operation.DatabaseOperation getTearDownOperation()
                                                               throws java.lang.Exception
Returns the database operation executed in test cleanup.

例外:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
例外:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
例外:
java.lang.Exception


Copyright © 2004 asyrinx organization. All Rights Reserved.