edu.sdsc.inca
Class IncatListTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.IncatListTest
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, junit.framework.Test

public class IncatListTest
extends junit.framework.TestCase
implements java.awt.event.ActionListener

A JUnit for the IncatList class.


Constructor Summary
IncatListTest()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Placeholder to allow using this class as an ActionListener.
 void testConstructorAndAddElement()
          Tests the IncatList constructor and the addElement method.
 void testEmpty()
          Tests operations on an empty list.
 void testFindMatchingElement()
          Tests the findMatchingElement method.
 void testSelection()
          Tests the methods involved in setting and querying the selected element.
 void testSort()
          Tests the sort method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 

Constructor Detail

IncatListTest

public IncatListTest()
Method Detail

testConstructorAndAddElement

public void testConstructorAndAddElement()
Tests the IncatList constructor and the addElement method.


testFindMatchingElement

public void testFindMatchingElement()
Tests the findMatchingElement method.


testSelection

public void testSelection()
Tests the methods involved in setting and querying the selected element.


testEmpty

public void testEmpty()
Tests operations on an empty list.


testSort

public void testSort()
Tests the sort method.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Placeholder to allow using this class as an ActionListener.

Specified by:
actionPerformed in interface java.awt.event.ActionListener