1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.myfaces.custom.tree2;
21
22 import junit.framework.Test;
23 import junit.framework.TestSuite;
24
25 /**
26 * TestCase for HtmlTree
27 *
28 * @author Sean Schofield
29 */
30 public class HtmlTreeTest extends AbstractTreeTestCase
31 {
32 //private HtmlTree tree;
33
34 /**
35 * Constructor
36 * @param name Test name
37 */
38 public HtmlTreeTest(String name)
39 {
40 super(name);
41 }
42
43 // public void setUp()
44 // {
45 // super.setUp();
46 // tree = new HtmlTree();
47 // }
48 //
49 // public void tearDown()
50 // {
51 // super.tearDown();
52 // }
53
54 // Return the tests included in this test case.
55 public static Test suite()
56 {
57 return new TestSuite(HtmlTreeTest.class);
58 }
59
60 /**
61 * Test default values of the tree
62 */
63 public void testDefaults()
64 {
65 assertTrue("clientSideToggle default should be true", tree.isClientSideToggle());
66 assertTrue("showNav default should be true", tree.isShowNav());
67 assertTrue("showLines default should be true", tree.isShowLines());
68 assertTrue("showRootNode default should be true", tree.isShowRootNode());
69 assertTrue("preserveToggle default should be true", tree.isPreserveToggle());
70 }
71
72 /**
73 *
74 */
75 public void testSaveAndRestore()
76 {
77
78 }
79 }