net.sf.gridarta.gui.mapmenu
public class MapMenuPreferencesTest extends Object
MapMenuLoader
.Constructor and Description |
---|
MapMenuPreferencesTest() |
Modifier and Type | Method and Description |
---|---|
private static void |
compareTrees(TreeNode treeNode1,
TreeNode treeNode2)
Compares two
TreeNode instances. |
static void |
setUp()
Initializes the test case.
|
void |
test1()
Checks that saving and re-loading entries works as expected.
|
void |
test2()
Checks that loading a
MapMenu instance works as expected. |
void |
test3()
Checks that saving and re-loading a
MapMenu having directories
with the same name works. |
public MapMenuPreferencesTest()
public void test1() throws IOException
IOException
- if the test failspublic void test2() throws BackingStoreException
MapMenu
instance works as expected.BackingStoreException
- if the test failspublic void test3()
MapMenu
having directories
with the same name works.private static void compareTrees(@NotNull TreeNode treeNode1, @NotNull TreeNode treeNode2)
TreeNode
instances. Fails the test case if the nodes
are not equal.treeNode1
- the first tree node instancetreeNode2
- the second tree node instancepublic static void setUp()
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.