org.davesag.generica.test
Class ListUtilsTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.davesag.generica.test.ListUtilsTest
All Implemented Interfaces:
Serializable, Test

public class ListUtilsTest
extends TestCase
implements Serializable

ListUtilsTest is collection of all of the tests on the ListUtils.

Since:
Generica 1.0
Version:
CVS Revision $Id: ListUtilsTest.java,v 1.8 2004/04/06 15:40:42 davesag Exp $
Author:
Dave Sag http://www.davesag.com
See Also:
Serialized Form

Constructor Summary
ListUtilsTest()
          null constructor
ListUtilsTest(String name)
          constructor that takes a test name
 
Method Summary
static Test suite()
          the test suite
 void testInsertIntoList()
          tests that we can insert an item into a list.
 void testRemoveAndInsertIntoList()
          tests that we can remove an item from a list and then re-insert it.
 void testRemoveFromEndAndInsertIntoList()
          tests that we can remove an item from the end of a list and then re-insert it nearer the front.
 String toImage()
          test name
 
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

ListUtilsTest

public ListUtilsTest()
null constructor


ListUtilsTest

public ListUtilsTest(String name)
constructor that takes a test name

Parameters:
name - the name of this suite of tests
Method Detail

testInsertIntoList

public void testInsertIntoList()
tests that we can insert an item into a list.


testRemoveAndInsertIntoList

public void testRemoveAndInsertIntoList()
tests that we can remove an item from a list and then re-insert it.


testRemoveFromEndAndInsertIntoList

public void testRemoveFromEndAndInsertIntoList()
tests that we can remove an item from the end of a list and then re-insert it nearer the front.


suite

public static Test suite()
the test suite

Returns:
suite of tests

toImage

public String toImage()
test name

Returns:
name of test


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.