|
||||||||||
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 | +--ca.quine.jcommons.freemind.maputil.test.MapUtilsTest
Code samples/test cases for the MapUtils
Utility class.
To run these, castor-1.0.3.jar, commons-logging-1.1.jar and
xerces.jar (or xercesImpl.jar) are required on the classpath.
See http://jcommons.sourceforge.net/ for download links.
Constructor Summary | |
MapUtilsTest()
|
Method Summary | |
void |
testApplyBFS()
Ensure that a BFS traversal happens in the right order. |
void |
testApplyDFSPostOrder()
Ensure that a DFS post-order traversal happens in the right order. |
void |
testApplyDFSPreOrder()
Ensure that a DFS pre-order traversal happens in the right order. |
void |
testCountAndCloseLargeNodes()
|
void |
testMakeNodeAndGetNode()
|
void |
testMindMapMarshalAsFile()
Creates a mindmap with sample data and marshals it to a file. |
void |
testSearchContains()
|
void |
testSearchExactMatch()
|
void |
testSearchRegex()
|
void |
testSortMap()
|
void |
testSortMapWithNodeComparator()
|
void |
testSortNode()
|
void |
testSortNodeWithNodeComparator()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Constructor Detail |
public MapUtilsTest()
Method Detail |
public void testMindMapMarshalAsFile() throws IOException, XMLException
IOException
XMLException
public void testMakeNodeAndGetNode()
public void testCountAndCloseLargeNodes()
public void testSortMap()
public void testSortMapWithNodeComparator()
public void testSortNode()
public void testSortNodeWithNodeComparator()
public void testApplyDFSPreOrder()
public void testApplyDFSPostOrder()
public void testApplyBFS()
public void testSearchContains()
public void testSearchExactMatch()
public void testSearchRegex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |