|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.junit.JDBCPerfTestCase
org.apache.derbyTesting.system.oe.run.Checks
public class Checks
Do some checks on the Order Entry database.
| Field Summary | |
|---|---|
private OEChecks |
check
Run checks on OE database |
private short |
scale
Warehouse scaling factor |
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
Checks(java.lang.String name)
|
|
Checks(java.lang.String name,
short scale)
|
|
| Method Summary | |
|---|---|
static junit.framework.Test |
checkAllRowCounts(short scale)
Return suite of tests that checks the row counts for all the tables in the Order Entry bechmark. |
static junit.framework.Test |
consistencyChecks()
Consistency checks per Section 3.3.2 of TPC-C spec |
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testCondition1()
Section 3.3.2.1 of TPC-C specification. |
void |
testCondition2()
Section 3.3.2.2 Consistency Condition 2 (TPC-C spec) Entries in the DISTRICT, ORDER, and NEW-ORDER tables must satisfy the relationship: D_NEXT_O_ID - 1 = max(O_ID) = max(NO_O_ID) for each district defined by (D_W_ID = O_W_ID = NO_W_ID) and (D_ID = O_D_ID = NO_D_ID). |
void |
testCondition3()
3.3.2.3 Consistency Condition 3 Entries in the NEW-ORDER table must satisfy the relationship: max(NO_O_ID) - min(NO_O_ID) + 1 = [number of rows in the NEW-ORDER table for this district] for each district defined by NO_W_ID and NO_D_ID. |
void |
testCondition4()
3.3.2.4 Consistency Condition 4 Entries in the ORDER and ORDER-LINE tables must satisfy the relationship: sum(O_OL_CNT) = [number of rows in the ORDER-LINE table for this district] for each district defined by (O_W_ID = OL_W_ID) and (O_D_ID = OL_D_ID). |
void |
testCustomerRows()
Test cardinality of CUSTOMER table |
void |
testDistrictRows()
Test cardinality of DISTRICT table |
void |
testHistoryRows()
Test cardinality of HISTORY table |
void |
testItemRows()
Test cardinality of ITEM table |
void |
testNewOrdersRows()
Test cardinality of NEWORDERS table |
void |
testOrderLineRows()
Test cardinality of ORDERLINE table |
void |
testOrdersRows()
Test cardinality of ORDERS table |
void |
testStockRows()
Test cardinality of STOCK table |
void |
testWarehouseRows()
Test cardinality of WAREHOUSE table |
| Methods inherited from class org.apache.derbyTesting.junit.JDBCPerfTestCase |
|---|
runBare, runTest |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, setName, 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 |
|---|
private short scale
private OEChecks check
| Constructor Detail |
|---|
public Checks(java.lang.String name)
public Checks(java.lang.String name,
short scale)
name - -
test namescale - -warehouse scale factor| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic static junit.framework.Test checkAllRowCounts(short scale)
scale - public static junit.framework.Test consistencyChecks()
public static junit.framework.Test suite()
public void testCondition1()
throws java.sql.SQLException
java.sql.SQLException
public void testCondition2()
throws java.sql.SQLException
java.sql.SQLException
public void testCondition3()
throws java.sql.SQLException
java.sql.SQLException
public void testCondition4()
throws java.sql.SQLException
java.sql.SQLException
public void testWarehouseRows()
throws java.lang.Exception
java.lang.Exception
public void testStockRows()
throws java.lang.Exception
java.lang.Exception
public void testOrdersRows()
throws java.lang.Exception
java.lang.Exception
public void testDistrictRows()
throws java.lang.Exception
java.lang.Exception
public void testCustomerRows()
throws java.lang.Exception
java.lang.Exception
public void testItemRows()
throws java.lang.Exception
java.lang.Exception
public void testNewOrdersRows()
throws java.lang.Exception
java.lang.Exception
public void testHistoryRows()
throws java.lang.Exception
java.lang.Exception
public void testOrderLineRows()
throws java.lang.Exception
java.lang.Exception
|
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 | ||||||||