tests
Class ROTest

java.lang.Object
  extended by tests.TestDriver
      extended by tests.ROTest
All Implemented Interfaces:
GlobalConst

 class ROTest
extends TestDriver

Test suite for the relop layer.


Nested Class Summary
 
Nested classes/interfaces inherited from class tests.TestDriver
TestDriver.CountData
 
Field Summary
private static Schema s_drivers
          Drivers table schema.
private static Schema s_groups
          Groups table schema.
private static Schema s_rides
          Rides table schema.
private static int SUPER_SIZE
          Size of tables in test3.
private static java.lang.String TEST_NAME
          The display name of the test suite.
 
Fields inherited from class tests.TestDriver
BUF_POLICY, BUF_SIZE, counts, DB_PATH, DB_SIZE, FAIL, PASS, random
 
Fields inherited from interface global.GlobalConst
EMPTY_SLOT, FIRST_PAGEID, INVALID_PAGEID, MAX_COLSIZE, MAX_TUPSIZE, NAME_MAXLEN, PAGE_SIZE, PIN_DISKIO, PIN_MEMCPY, UNPIN_CLEAN, UNPIN_DIRTY
 
Constructor Summary
ROTest()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Test application entry point; runs all tests.
protected  boolean test1()
           
protected  boolean test2()
          SELECT * FROM Drivers D INNER JOIN Rides R ON (D.DriverId = R.DriverId);
protected  boolean test3()
          SELECT * FROM Groups G INNER JOIN Rides R ON (G.GroupId = R.GroupId) INNER JOIN Drivers D ON (R.DriverId = D.DriverId) WHERE D.NumSeats < G.GroupId;
 
Methods inherited from class tests.TestDriver
create_minibase, delete_minibase, initCounts, initRandom, load_minibase, printCounters, printSummary, saveCounts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_NAME

private static final java.lang.String TEST_NAME
The display name of the test suite.

See Also:
Constant Field Values

SUPER_SIZE

private static final int SUPER_SIZE
Size of tables in test3.

See Also:
Constant Field Values

s_drivers

private static Schema s_drivers
Drivers table schema.


s_rides

private static Schema s_rides
Rides table schema.


s_groups

private static Schema s_groups
Groups table schema.

Constructor Detail

ROTest

ROTest()
Method Detail

main

public static void main(java.lang.String[] argv)
Test application entry point; runs all tests.


test1

protected boolean test1()

test2

protected boolean test2()
SELECT * FROM Drivers D INNER JOIN Rides R ON (D.DriverId = R.DriverId);


test3

protected boolean test3()
SELECT * FROM Groups G INNER JOIN Rides R ON (G.GroupId = R.GroupId) INNER JOIN Drivers D ON (R.DriverId = D.DriverId) WHERE D.NumSeats < G.GroupId;