|
|||||||||
| 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.BLOBDataModelSetup
public final class BLOBDataModelSetup
Sets up a data model with very large BLOBs. The table created will have three fields: 1. a value field (val), which is the value for every byte in the BLOB. 2. a length (length) field which is the actual size of the BLOB 3. the data field (data), which is the actual BLOB data.
| Field Summary | |
|---|---|
(package private) static int |
bigSize
Size of big record (currently 64 MB) |
(package private) static int |
bigVal
Val for big record |
(package private) static int |
regularBlobs
Number of regular Blobs |
(package private) static int |
size
Size of regular Blobs (currently 1MB) |
private static java.lang.String |
tableName
Name of table |
| Fields inherited from class junit.extensions.TestDecorator |
|---|
fTest |
| Constructor Summary | |
|---|---|
BLOBDataModelSetup(junit.framework.Test test)
Constructor |
|
| Method Summary | |
|---|---|
static java.lang.String |
getBlobTableName()
Return table name |
protected void |
setUp()
The setup creates a Connection to the database, and creates a table with blob columns. |
protected void |
tearDown()
Teardown test. |
| 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, toString |
| 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 |
|---|
static final int size
static final int regularBlobs
static final int bigSize
static final int bigVal
private static final java.lang.String tableName
| Constructor Detail |
|---|
public BLOBDataModelSetup(junit.framework.Test test)
test - test object being decorated by this TestSetup| Method Detail |
|---|
protected final void setUp()
throws java.lang.Exception
setUp in class junit.extensions.TestSetupjava.lang.Exception - any exception will cause test to fail with error.
protected final void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestSetupExceptions - causes the test to fail with error
java.lang.Exceptionpublic static final java.lang.String getBlobTableName()
|
Built on Wed 2009-11-25 18:43:31-0800, from revision 884373 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||