org.sonar.test.persistence
Class DatabaseTestCase
java.lang.Object
org.sonar.test.persistence.DatabaseTestCase
public abstract class DatabaseTestCase
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseTestCase
public DatabaseTestCase()
startDatabase
public static void startDatabase()
throws Exception
- Throws:
Exception
stopDatabase
public static void stopDatabase()
throws Exception
- Throws:
Exception
getDatabaseTester
public static org.dbunit.IDatabaseTester getDatabaseTester()
getConnection
protected final Connection getConnection()
truncateTables
public final void truncateTables()
throws SQLException
- Throws:
SQLException
closeConnection
public final void closeConnection()
setupData
protected final void setupData(String... testNames)
assertTables
protected final void assertTables(String testName,
String... tables)
assertTables
protected final void assertTables(String testName,
String[] tables,
String[] ignoreCols)
assertEmptyTables
protected final void assertEmptyTables(String... emptyTables)
Copyright © 2009-2011 SonarSource. All Rights Reserved.