public class SURDataModelSetup extends BaseJDBCTestSetup
| Modifier and Type | Class and Description |
|---|---|
static class |
SURDataModelSetup.SURDataModel
Enum for the layout of the data model
|
| Modifier and Type | Field and Description |
|---|---|
private SURDataModelSetup.SURDataModel |
model |
(package private) static int |
recordCount |
| Constructor and Description |
|---|
SURDataModelSetup(junit.framework.Test test,
SURDataModelSetup.SURDataModel model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createDataModel(SURDataModelSetup.SURDataModel model,
java.sql.Connection con)
Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data.
|
static void |
createDataModel(SURDataModelSetup.SURDataModel model,
java.sql.Connection con,
int records)
Creates a datamodel for testing Scrollable Updatable ResultSets
and populates the database model with data.
|
(package private) static void |
printStackTrace(java.lang.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()
Delete the datamodel
|
java.lang.String |
toString() |
getConnection, getTestConfiguration, printlnrunassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprivate final SURDataModelSetup.SURDataModel model
static final int recordCount
public SURDataModelSetup(junit.framework.Test test,
SURDataModelSetup.SURDataModel model)
test - test to decorate with this setupmodel - enumerator for which model to use.
(Alternatively we could use a subclass for each model)public static void createDataModel(SURDataModelSetup.SURDataModel model, java.sql.Connection con, int records) throws java.sql.SQLException
model - enumerator for which model to usecon - connection to databaserecords - number of records in the data modeljava.sql.SQLExceptionpublic static void createDataModel(SURDataModelSetup.SURDataModel model, java.sql.Connection con) throws java.sql.SQLException
model - enumerator for which model to usecon - connection to databasejava.sql.SQLExceptionprotected void setUp()
throws java.lang.Exception
setUp in class junit.extensions.TestSetupjava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestSetupjava.lang.Exceptionpublic java.lang.String toString()
toString in class junit.extensions.TestDecoratorstatic void printStackTrace(java.lang.Throwable t)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.