KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > test > portal > ContextIDTestCase


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.test.portal;
10
11 import junit.framework.TestCase;
12
13 /**
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class ContextIDTestCase extends TestCase
18 {
19
20    public void testLocalContextID()
21    {
22 // ContextID root = ContextID.ROOT;
23
// ContextID a = root.getChildNode("a");
24
// ContextID a_b = a.getChildNode("b");
25
//
26
// assertNull(root.getParent());
27
// assertNull(root.getKey());
28
//
29
// assertTrue(root == a.getParent());
30
// assertEquals("a", a.getKey());
31
// assertTrue(root.getChildNode("a") == a);
32
//
33
// assertTrue(a == a_b.getParent());
34
// assertEquals("b", a_b.getKey());
35
// assertTrue(a.getChildNode("b") == a_b);
36
}
37 }
38
Popular Tags