org.htmlparser.tests.utilTests
Class SortTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.htmlparser.tests.ParserTestCase
              extended byorg.htmlparser.tests.utilTests.SortTest
All Implemented Interfaces:
junit.framework.Test

public class SortTest
extends ParserTestCase

Sort testing.


Field Summary
 
Fields inherited from class org.htmlparser.tests.ParserTestCase
mLexer, node, nodeCount, parser
 
Constructor Summary
SortTest(java.lang.String name)
          Creates a new instance of SortTest
 
Method Summary
 void testQuickSort()
          Test the operation of the static quicksort algorithm.
 void testSortList()
          Test the operation of quicksort on a sortable list.
 void testSortVector()
          Test the operation of quicksort on a vector of ordered items.
 
Methods inherited from class org.htmlparser.tests.ParserTestCase
assertHiddenIDTagPresent, assertNodeCount, assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, failWithMessage, getParser, main, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Constructor Detail

SortTest

public SortTest(java.lang.String name)
Creates a new instance of SortTest

Method Detail

testQuickSort

public void testQuickSort()
Test the operation of the static quicksort algorithm.


testSortList

public void testSortList()
Test the operation of quicksort on a sortable list.


testSortVector

public void testSortVector()
Test the operation of quicksort on a vector of ordered items.