| org.apache.derbyTesting.junit.BaseJDBCTestSetup org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup
SURDataModelSetup | public class SURDataModelSetup extends BaseJDBCTestSetup (Code) | | This class is a decorator for the Scrollable Updatable Resultset
tests. It sets up a datamodel and populates it with data.
author: Andreas Korneliussen |
Inner Class :final public static class SURDataModel | |
Constructor Summary | |
public | SURDataModelSetup(Test test, SURDataModel model) Constructor. |
Method Summary | |
public static void | createDataModel(SURDataModel model, Connection con, int records) Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data. | public static void | createDataModel(SURDataModel model, Connection con) Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data. | static void | printStackTrace(Throwable t) Prints the stack trace. | protected void | setUp() Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data. | protected void | tearDown() | public String | toString() |
recordCount | final static int recordCount(Code) | | |
SURDataModelSetup | public SURDataModelSetup(Test test, SURDataModel model)(Code) | | Constructor.
Parameters: test - test to decorate with this setup Parameters: model - enumerator for which model to use.(Alternatively we could use a subclass for each model) |
createDataModel | public static void createDataModel(SURDataModel model, Connection con, int records) throws SQLException(Code) | | Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data.
Parameters: model - enumerator for which model to use Parameters: con - connection to database Parameters: records - number of records in the data model |
createDataModel | public static void createDataModel(SURDataModel model, Connection con) throws SQLException(Code) | | Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data.
The model will be set up with the number of records as defined by
the recordCount attribute.
Parameters: model - enumerator for which model to use Parameters: con - connection to database |
printStackTrace | static void printStackTrace(Throwable t)(Code) | | Prints the stack trace. If run in the harness, the
harness will mark the test as failed if this method
has been called.
|
setUp | protected void setUp() throws Exception(Code) | | Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data.
|
tearDown | protected void tearDown() throws Exception(Code) | | Delete the datamodel
|
|
|