org.hsqldb.test
Class TestDataStructures
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.hsqldb.test.TestDataStructures
-
- All Implemented Interfaces:
- junit.framework.Test
public class TestDataStructures extends junit.framework.TestCaseRandomly excutes methods on the HsqlList data structures and compares the results with equivalent calls on the java vector class.
-
-
Constructor Summary
Constructors Constructor and Description TestDataStructures(java.lang.String s)Creates a new instance of TestDataStructures
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcompareLists(HsqlArrayList arrayList, HsqlDeque linkedList, java.util.Vector vector)Compare contents of lists to the vector.static voidmain(java.lang.String[] args)voidprintListCommandsCalled(java.util.Vector commands)Prints the list of commands called so farvoidtestGrowth()voidtestLists()Runs a test on the hsqldb listsvoidtestSpeed()-
Methods inherited from class junit.framework.TestCase
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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
-
-
-
Constructor Detail
-
TestDataStructures
public TestDataStructures(java.lang.String s)
Creates a new instance of TestDataStructures
-
-
Method Detail
-
testLists
public void testLists()
Runs a test on the hsqldb lists
-
compareLists
public void compareLists(HsqlArrayList arrayList, HsqlDeque linkedList, java.util.Vector vector)
Compare contents of lists to the vector. Print out stuff if they are inconsistent and exit.
-
printListCommandsCalled
public void printListCommandsCalled(java.util.Vector commands)
Prints the list of commands called so far
-
testGrowth
public void testGrowth()
-
testSpeed
public void testSpeed()
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG