de.jface.util
Class KeyTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.jface.util.KeyTest
All Implemented Interfaces:
junit.framework.Test

public class KeyTest
extends junit.framework.TestCase

The test case KeyTest tests the [your text here].

Version:
$Revision: 1.1.1.1 $
Author:
Moritz Petersen

Constructor Summary
KeyTest(java.lang.String name)
          This constructor creates a new KeyTest test case.
 
Method Summary
 void testCompareTo()
           
 void testContains()
          The focus of this test is to test the contains() method with a deep hierarchy and with multiple instances of keys with the same name.
 void testGetKey()
          Tests the method getKey.
 void testName()
           
 void testRemove()
          Tests the remove method.
 void testToString()
           
 void testValue()
          This method tests [your text here].
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

KeyTest

public KeyTest(java.lang.String name)
This constructor creates a new KeyTest test case.
Method Detail

testValue

public void testValue()
This method tests [your text here].

testCompareTo

public void testCompareTo()

testGetKey

public void testGetKey()
Tests the method getKey. This test doesn't just test the plain method, it also expects that the returned key is the same instance than before. To make a reality-check, the key will be assigned with a value.

testRemove

public void testRemove()
Tests the remove method. The first part of the test will take part with a key without parent (parent == null). In this case the remove method should return false. The second part will take part with a key that has a parent, where the remove mehtod should return true.

testContains

public void testContains()
The focus of this test is to test the contains() method with a deep hierarchy and with multiple instances of keys with the same name.

testToString

public void testToString()

testName

public void testName()


Copyright © 2002-2002 Moritz Petersen. All Rights Reserved.