org.seasar.extension.unit
クラス S2TestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.seasar.framework.unit.S2FrameworkTestCase
org.seasar.extension.unit.S2TestCase
- すべての実装インタフェース:
- Test
- public abstract class S2TestCase
- extends org.seasar.framework.unit.S2FrameworkTestCase
- 作成者:
- higa
クラス org.seasar.framework.unit.S2FrameworkTestCase から継承したフィールド |
ENV_PATH, ENV_VALUE |
メソッドの概要 |
protected void |
assertBeanEquals(String message,
DataSet expected,
Object bean)
|
protected void |
assertBeanListEquals(String message,
DataSet expected,
List list)
|
void |
assertEquals(DataSet expected,
DataSet actual)
|
void |
assertEquals(DataSet expected,
Object actual)
|
void |
assertEquals(DataTable expected,
DataTable actual)
|
void |
assertEquals(String message,
DataSet expected,
DataSet actual)
|
void |
assertEquals(String message,
DataSet expected,
Object actual)
|
void |
assertEquals(String message,
DataTable expected,
DataTable actual)
|
protected void |
assertMapEquals(String message,
DataSet expected,
Map map)
|
protected void |
assertMapListEquals(String message,
DataSet expected,
List list)
|
void |
deleteDb(DataSet dataSet)
|
void |
deleteTable(String tableName)
|
protected void |
doRunTest()
|
Connection |
getConnection()
|
DatabaseMetaData |
getDatabaseMetaData()
|
DataSource |
getDataSource()
|
protected SqlWriter |
getSqlWriter()
|
protected boolean |
needTransaction()
|
DataSet |
readDb(DataSet dataSet)
|
DataTable |
readDbBySql(String sql,
String tableName)
|
DataTable |
readDbByTable(String table)
|
DataTable |
readDbByTable(String table,
String condition)
|
DataSet |
readXls(String path)
|
DataSet |
readXls(String path,
boolean trimString)
|
void |
readXlsAllReplaceDb(String path)
|
void |
readXlsAllReplaceDb(String path,
boolean trimString)
|
void |
readXlsReplaceDb(String path)
|
void |
readXlsReplaceDb(String path,
boolean trimString)
|
void |
readXlsWriteDb(String path)
|
void |
readXlsWriteDb(String path,
boolean trimString)
|
DataSet |
reload(DataSet dataSet)
|
DataTable |
reload(DataTable table)
|
DataSet |
reloadOrReadDb(DataSet dataSet)
|
protected void |
setUpAfterContainerInit()
|
protected void |
setupDataSource()
|
protected void |
tearDownBeforeContainerDestroy()
|
protected void |
tearDownDataSource()
|
void |
writeDb(DataSet dataSet)
|
void |
writeXls(String path,
DataSet dataSet)
|
クラス org.seasar.framework.unit.S2FrameworkTestCase から継承したメソッド |
bindField, bindFields, convertPath, getComponent, getComponent, getComponentDef, getComponentDef, getContainer, getNamingConvention, getOriginalClassLoader, getRequest, getResponse, getRootDicon, getServlet, getServletConfig, getServletContext, getTargetMethod, getTargetName, include, invoke, isAutoBindable, isWarmDeploy, normalizeName, register, register, register, register, register, resolveRootDicon, runBare, setRequest, setResponse, setServlet, setServletConfig, setServletContext, setUpAfterBindFields, setUpContainer, setUpForEachTestMethod, setWarmDeploy, tearDownBeforeUnbindFields, tearDownContainer, tearDownForEachTestMethod, unbindFields |
クラス 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, failNotEquals, failNotSame, failSame |
S2TestCase
public S2TestCase()
S2TestCase
public S2TestCase(String name)
doRunTest
protected void doRunTest()
throws Throwable
- 例外:
Throwable
needTransaction
protected boolean needTransaction()
setUpAfterContainerInit
protected void setUpAfterContainerInit()
throws Throwable
- 例外:
Throwable
tearDownBeforeContainerDestroy
protected void tearDownBeforeContainerDestroy()
throws Throwable
- 例外:
Throwable
setupDataSource
protected void setupDataSource()
tearDownDataSource
protected void tearDownDataSource()
getDataSource
public DataSource getDataSource()
getConnection
public Connection getConnection()
getDatabaseMetaData
public DatabaseMetaData getDatabaseMetaData()
readXls
public DataSet readXls(String path)
readXls
public DataSet readXls(String path,
boolean trimString)
writeXls
public void writeXls(String path,
DataSet dataSet)
writeDb
public void writeDb(DataSet dataSet)
getSqlWriter
protected SqlWriter getSqlWriter()
readDb
public DataSet readDb(DataSet dataSet)
readDbByTable
public DataTable readDbByTable(String table)
readDbByTable
public DataTable readDbByTable(String table,
String condition)
readDbBySql
public DataTable readDbBySql(String sql,
String tableName)
readXlsWriteDb
public void readXlsWriteDb(String path)
readXlsWriteDb
public void readXlsWriteDb(String path,
boolean trimString)
readXlsReplaceDb
public void readXlsReplaceDb(String path)
readXlsReplaceDb
public void readXlsReplaceDb(String path,
boolean trimString)
readXlsAllReplaceDb
public void readXlsAllReplaceDb(String path)
readXlsAllReplaceDb
public void readXlsAllReplaceDb(String path,
boolean trimString)
reload
public DataSet reload(DataSet dataSet)
reload
public DataTable reload(DataTable table)
reloadOrReadDb
public DataSet reloadOrReadDb(DataSet dataSet)
deleteDb
public void deleteDb(DataSet dataSet)
deleteTable
public void deleteTable(String tableName)
assertEquals
public void assertEquals(DataSet expected,
DataSet actual)
assertEquals
public void assertEquals(String message,
DataSet expected,
DataSet actual)
assertEquals
public void assertEquals(DataTable expected,
DataTable actual)
assertEquals
public void assertEquals(String message,
DataTable expected,
DataTable actual)
assertEquals
public void assertEquals(DataSet expected,
Object actual)
assertEquals
public void assertEquals(String message,
DataSet expected,
Object actual)
assertMapEquals
protected void assertMapEquals(String message,
DataSet expected,
Map map)
assertMapListEquals
protected void assertMapListEquals(String message,
DataSet expected,
List list)
assertBeanEquals
protected void assertBeanEquals(String message,
DataSet expected,
Object bean)
assertBeanListEquals
protected void assertBeanListEquals(String message,
DataSet expected,
List list)
Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.