org.sonar.test.persistence
Class DatabaseTestCase

java.lang.Object
  extended by org.sonar.test.persistence.DatabaseTestCase

public abstract class DatabaseTestCase
extends Object


Constructor Summary
DatabaseTestCase()
           
 
Method Summary
protected  void assertEmptyTables(String... emptyTables)
           
protected  void assertTables(String testName, String... tables)
           
protected  void assertTables(String testName, String[] tables, String[] ignoreCols)
           
 void closeConnection()
           
protected  Connection getConnection()
           
static org.dbunit.IDatabaseTester getDatabaseTester()
           
protected  void setupData(String... testNames)
           
static void startDatabase()
           
static void stopDatabase()
           
 void truncateTables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTestCase

public DatabaseTestCase()
Method Detail

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.