|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
junit.extensions.TestSetup
org.apache.derbyTesting.junit.BaseTestSetup
org.apache.derbyTesting.junit.BaseJDBCTestSetup
org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup
public class SURDataModelSetup
This class is a decorator for the Scrollable Updatable Resultset tests. It sets up a datamodel and populates it with data.
| Nested Class Summary | |
|---|---|
static class |
SURDataModelSetup.SURDataModel
Enum for the layout of the data model |
| Field Summary | |
|---|---|
private SURDataModelSetup.SURDataModel |
model
|
(package private) static int |
recordCount
|
| Fields inherited from class junit.extensions.TestDecorator |
|---|
fTest |
| Constructor Summary | |
|---|---|
SURDataModelSetup(junit.framework.Test test,
SURDataModelSetup.SURDataModel model)
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.derbyTesting.junit.BaseJDBCTestSetup |
|---|
getConnection, getTestConfiguration, println |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestSetup |
|---|
run |
| Methods inherited from class junit.extensions.TestDecorator |
|---|
basicRun, countTestCases, getTest |
| Methods inherited from class junit.framework.Assert |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final SURDataModelSetup.SURDataModel model
static final int recordCount
| Constructor Detail |
|---|
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)| Method Detail |
|---|
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 model
java.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 database
java.sql.SQLException
protected void setUp()
throws java.lang.Exception
setUp in class junit.extensions.TestSetupjava.lang.Exception
protected 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)
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||