| net.sourceforge.groboutils.util.datastruct.v1.PathRegistryUTest
PathRegistryUTest | public class PathRegistryUTest extends TestCase (Code) | | author: Matt Albrecht groboclown@users.sourceforge.net since: March 15, 2001 (Alpha 0.9.0) version: $Date: 2003/02/10 22:52:44 $ |
Method Summary | |
protected void | alreadyRegisteredTest(PathRegistry pr, String path) Attempt to register an object at the given path. | protected void | cantRemoveEntryTest(PathRegistry pr, String path) Pass if the correct exception is thrown when trying to remove
an entry that doesn't exist. | protected void | caseAlreadyRegisteredTest(PathRegistry pr, String path, char separator) Attempt to register the given path and its case variations. | protected void | caseCantRemoveEntryTest(PathRegistry pr, String path, char separator) | protected void | caseNotRegisteredTest(PathRegistry pr, String path, char separator) Assert that the given path's case variations are not registered
(however, the original path may be registered). | protected void | caseRegisteredRightTest(PathRegistry pr, String path, Object expectedObj, char separator) | protected String[] | getCaseVariations(String orig, char separator) Get a set of variations in case upper / lower of the given
path. | public static void | main(String[] args) | protected void | notRegisteredTest(PathRegistry pr, String path) Assert that the given path has nothing registered to it. | protected void | registeredRightTest(PathRegistry pr, String path, Object expectedObj) Assert that the given path is registered to the given object. | protected void | setUp() | public static Test | suite() | protected void | tearDown() | public void | testAddCaseInsensitiveNotRecursive() | public void | testAddCaseSensitiveNotRecursive() | public void | testAddCaseSensitiveRecursive() | public void | testAddTwiceException() | public void | testAddTwiceExceptionCaseInsensitive() | public void | testAddTwiceExceptionRecursive() | public void | testInstantiate() | public void | testRemoveCaseSensitiveNotResursive() |
PathRegistryUTest | public PathRegistryUTest(String name)(Code) | | |
alreadyRegisteredTest | protected void alreadyRegisteredTest(PathRegistry pr, String path)(Code) | | Attempt to register an object at the given path. The test succeeds
if it is already registered, and fails if it does not throw an
exception.
|
cantRemoveEntryTest | protected void cantRemoveEntryTest(PathRegistry pr, String path)(Code) | | Pass if the correct exception is thrown when trying to remove
an entry that doesn't exist.
|
caseAlreadyRegisteredTest | protected void caseAlreadyRegisteredTest(PathRegistry pr, String path, char separator)(Code) | | Attempt to register the given path and its case variations.
|
caseNotRegisteredTest | protected void caseNotRegisteredTest(PathRegistry pr, String path, char separator)(Code) | | Assert that the given path's case variations are not registered
(however, the original path may be registered).
|
caseRegisteredRightTest | protected void caseRegisteredRightTest(PathRegistry pr, String path, Object expectedObj, char separator)(Code) | | Assert that the given path and its case variations are registered/
|
getCaseVariations | protected String[] getCaseVariations(String orig, char separator)(Code) | | Get a set of variations in case upper / lower of the given
path.
|
notRegisteredTest | protected void notRegisteredTest(PathRegistry pr, String path)(Code) | | Assert that the given path has nothing registered to it.
|
registeredRightTest | protected void registeredRightTest(PathRegistry pr, String path, Object expectedObj)(Code) | | Assert that the given path is registered to the given object.
|
suite | public static Test suite()(Code) | | |
testInstantiate | public void testInstantiate()(Code) | | |
|
|