public class DbUnitRunner
extends org.junit.runners.BlockJUnit4ClassRunner
| Modifier and Type | Class and Description |
|---|---|
protected class |
DbUnitRunner.DbUnitStatement |
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
configProperties |
protected DataSource |
dataSource |
protected String |
jdbcUrl |
protected String |
password |
protected String |
schema |
protected Connection |
testConnection |
protected String |
username |
| Constructor and Description |
|---|
DbUnitRunner(Class<?> testClass)
Constract Runner for DbUnit.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
protected DataSource |
createDataSource() |
protected Object |
createTest() |
protected static void |
loadDriver(String driverName) |
protected org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method) |
protected static String |
optionalValue(ResourceBundle bundle,
String key) |
collectInitializationErrors, describeChild, getChildren, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutprotected DataSource dataSource
protected Connection testConnection
protected String jdbcUrl
protected String username
protected String password
protected String schema
protected Properties configProperties
public DbUnitRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
testClass - Test Classorg.junit.runners.model.InitializationError - Initialization errorprotected static void loadDriver(String driverName)
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
methodBlock in class org.junit.runners.BlockJUnit4ClassRunnerprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerprotected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected DataSource createDataSource()
protected static String optionalValue(ResourceBundle bundle, String key)
Copyright © 2015 kiy0taka.org. All Rights Reserved.