Package edu.jas.util
Class DistributedListTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.util.DistributedListTest
-
- All Implemented Interfaces:
junit.framework.Test
public class DistributedListTest extends junit.framework.TestCase
DistributedList tests with JUnit.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description DistributedListTest(java.lang.String name)Constructs aDistributedListTestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)mainprotected voidsetUp()static junit.framework.Testsuite()protected voidtearDown()voidtestDistributedList1()Tests if the created DistributedList has #n objects as content.voidtestDistributedList2()Tests if the two created DistributedLists have #n objects as content.voidtestDistributedList3()Tests if the three created DistributedLists have #n objects as content.voidtestDistributedList6()Tests if the two created DistributedLists have #n objects as content when one is created later.-
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, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Constructor Detail
-
DistributedListTest
public DistributedListTest(java.lang.String name)
Constructs aDistributedListTestobject.- Parameters:
name- String.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
main
-
suite
public static junit.framework.Test suite()
-
setUp
protected void setUp()
- Overrides:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDownin classjunit.framework.TestCase
-
testDistributedList1
public void testDistributedList1()
Tests if the created DistributedList has #n objects as content.
-
testDistributedList2
public void testDistributedList2()
Tests if the two created DistributedLists have #n objects as content.
-
testDistributedList3
public void testDistributedList3()
Tests if the three created DistributedLists have #n objects as content.
-
testDistributedList6
public void testDistributedList6()
Tests if the two created DistributedLists have #n objects as content when one is created later.
-
-