1 package net.sf.flock.tree;
2
3 import junit.framework.TestCase;
4
5 public class BaseTreeNodeTest extends TestCase {
6
7 /***
8 * Constructor for BaseTreeNodeTest.
9 * @param arg0
10 */
11 public BaseTreeNodeTest(String arg0) {
12 super(arg0);
13 }
14
15 public void testCreatePath() {
16 BaseTreeNode root = new BaseTreeNode("");
17 root.getChild("/foo/bar/baz", true);
18 BaseTreeNode node = root.getChild("foo").getChild("bar").getChild("baz");
19 assertNotNull( node );
20 assertEquals( "/foo/bar/baz", node.getFullPath() );
21 }
22
23 }
This page was automatically generated by Maven