org.springframework.test.context.junit4

Class AbstractTransactionalJUnit4SpringContextTests

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected int countRowsInTable(java.lang.String tableName)
      Convenience method for counting the rows in the given table.
      protected int countRowsInTableWhere(java.lang.String tableName, java.lang.String whereClause)
      Convenience method for counting the rows in the given table, using the provided WHERE clause.
      protected int deleteFromTables(java.lang.String... names)
      Convenience method for deleting all rows from the specified tables.
      protected int deleteFromTableWhere(java.lang.String tableName, java.lang.String whereClause, java.lang.Object... args)
      Convenience method for deleting all rows from the given table, using the provided WHERE clause.
      protected void dropTables(java.lang.String... names)
      Convenience method for dropping all of the specified tables.
      protected void executeSqlScript(java.lang.String sqlResourcePath, boolean continueOnError)
      Execute the given SQL script.
      void setDataSource(javax.sql.DataSource dataSource)
      Set the DataSource, typically provided via Dependency Injection.
      void setSqlScriptEncoding(java.lang.String sqlScriptEncoding)
      Specify the encoding for SQL scripts, if different from the platform encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait