de.akquinet.jbosscc.needle.db.operation
Class ExecuteScriptOperation

java.lang.Object
  extended by de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
      extended by de.akquinet.jbosscc.needle.db.operation.ExecuteScriptOperation
All Implemented Interfaces:
DBOperation

public class ExecuteScriptOperation
extends AbstractDBOperation

Execute before and after sql scripts in test setup and tear down.


Constructor Summary
ExecuteScriptOperation(JdbcConfiguration jdbcConfiguration)
           
 
Method Summary
 void setUpOperation()
          Execute before.sql script in test setup.
 void tearDownOperation()
          Execute after.sql script in test tear down.
 
Methods inherited from class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
closeConnection, commit, executeScript, getConnection, getTableNames, openConnection, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteScriptOperation

public ExecuteScriptOperation(JdbcConfiguration jdbcConfiguration)
Method Detail

setUpOperation

public void setUpOperation()
                    throws SQLException
Execute before.sql script in test setup.

Throws:
SQLException - if a database access error occurs

tearDownOperation

public void tearDownOperation()
                       throws SQLException
Execute after.sql script in test tear down.

Throws:
SQLException - if a database access error occurs


Copyright © 2013 akquinet AG. All Rights Reserved.