de.uds.cs.st.dd.core.test
Class TConfigurationTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.uds.cs.st.dd.core.test.TConfigurationTest
All Implemented Interfaces:
junit.framework.Test

public class TConfigurationTest
extends junit.framework.TestCase

Test class for the TConfiguration class. Used for unit testing.

Author:
Philipp Bouillon

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

c1

private TConfiguration c1
A TConfiguration used for testing.


c2

private TConfiguration c2
A TConfiguration used for testing.

Constructor Detail

TConfigurationTest

public TConfigurationTest(String name)
Constructor for TConfigurationTest.

Parameters:
name - Name of the JUnit test.
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Exception

addSomeElements

private void addSomeElements(TConfiguration c,
                             int start,
                             int count)
Adds the integers start, start + 1, start + 2, ..., start + count - 1 to * the specified TConfiguration. * * @param c TConfiguration that will receive the new integers (they are * added to it). * @param start first integer value to be added. * @param count number of values to be added.


assertEquality

private void assertEquality(TConfiguration c1,
                            TConfiguration c2)
Asserts equality of two TConfigurations. Each element of these * TConfigurations must be an Integer and both TConfigurations must * contain the same numbers in the same order. * * @param c1 one TConfiguration object. * @param c2 another TConfiguration object.


testCopy

public void testCopy()
Tests the method TConfiguration.copy.


testSize

public void testSize()
Tests the method TConfiguration.size.


testIsEmpty

public void testIsEmpty()
Tests the method TConfiguration.isEmpty.


testContains

public void testContains()
Tests the method TConfiguration.contains.


testIterator

public void testIterator()
Tests the method TConfiguration.iterator.


testToArray

public void testToArray()
Tests the method TConfiguration.toArray.


testToArrayObjectArray

public void testToArrayObjectArray()
Tests the method TConfiguration.toArray(Object []). * This test is not yet implemented.


testAdd

public void testAdd()
Tests the method TConfiguration.add. * This test is not yet implemented.


testRemove

public void testRemove()
Tests the method TConfiguration.remove. * This test is not yet implemented.


testContainsAll

public void testContainsAll()
Tests the method TConfiguration.containsAll. * This test is not yet implemented.


testAddAll

public void testAddAll()
Tests the method TConfiguration.addAll. * This test is not yet implemented.


testRemoveAll

public void testRemoveAll()
Tests the method TConfiguration.removeAll. * This test is not yet implemented.


testRetainAll

public void testRetainAll()
Tests the method TConfiguration.retainAll. * This test is not yet implemented.


testClear

public void testClear()
Tests the method TConfiguration.clear. * This test is not yet implemented.