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, println
run
assertEquals, 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, format
private 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.SQLException
public 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.SQLException
protected void setUp() throws java.lang.Exception
setUp
in class junit.extensions.TestSetup
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class BaseJDBCTestSetup
java.lang.Exception
public java.lang.String toString()
toString
in class junit.extensions.TestDecorator
static void printStackTrace(java.lang.Throwable t)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.