|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--de.uds.cs.st.dd.core.test.TConfigurationTest
Test class for the TConfiguration class. Used for unit testing.
Field Summary | |
private TConfiguration |
c1
A TConfiguration used for testing. |
private TConfiguration |
c2
A TConfiguration used for testing. |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
TConfigurationTest(String name)
Constructor for TConfigurationTest. |
Method Summary | |
private void |
addSomeElements(TConfiguration c,
int start,
int count)
Adds the integers start, start + 1, start + 2, ..., start + count - 1 to * the specified TConfiguration. |
private void |
assertEquality(TConfiguration c1,
TConfiguration c2)
Asserts equality of two TConfigurations. |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testAdd()
Tests the method TConfiguration.add. |
void |
testAddAll()
Tests the method TConfiguration.addAll. |
void |
testClear()
Tests the method TConfiguration.clear. |
void |
testContains()
Tests the method TConfiguration.contains. |
void |
testContainsAll()
Tests the method TConfiguration.containsAll. |
void |
testCopy()
Tests the method TConfiguration.copy. |
void |
testIsEmpty()
Tests the method TConfiguration.isEmpty. |
void |
testIterator()
Tests the method TConfiguration.iterator. |
void |
testRemove()
Tests the method TConfiguration.remove. |
void |
testRemoveAll()
Tests the method TConfiguration.removeAll. |
void |
testRetainAll()
Tests the method TConfiguration.retainAll. |
void |
testSize()
Tests the method TConfiguration.size. |
void |
testToArray()
Tests the method TConfiguration.toArray. |
void |
testToArrayObjectArray()
Tests the method TConfiguration.toArray(Object []). |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
private TConfiguration c1
private TConfiguration c2
Constructor Detail |
public TConfigurationTest(String name)
name
- Name of the JUnit test.Method Detail |
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
private void addSomeElements(TConfiguration c, int start, int count)
private void assertEquality(TConfiguration c1, TConfiguration c2)
public void testCopy()
public void testSize()
public void testIsEmpty()
public void testContains()
public void testIterator()
public void testToArray()
public void testToArrayObjectArray()
public void testAdd()
public void testRemove()
public void testContainsAll()
public void testAddAll()
public void testRemoveAll()
public void testRetainAll()
public void testClear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |