1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.trinidad.component.core.layout;
20
21 import junit.framework.Test;
22 import junit.framework.TestSuite;
23
24 import org.apache.myfaces.trinidad.component.UIXPanel;
25
26 /**
27 * Unit tests for CorePanelGroupLayout.
28 *
29 */
30 public class CorePanelGroupLayoutTest extends UIXPanelTestCase
31 {
32 /**
33 * Creates a new CorePanelGroupLayoutTest.
34 *
35 * @param testName the unit test name
36 */
37 public CorePanelGroupLayoutTest(
38 String testName)
39 {
40 super(testName);
41 }
42
43 @Override
44 protected void setUp() throws Exception
45 {
46 super.setUp();
47 }
48
49 @Override
50 protected void tearDown() throws Exception
51 {
52 super.tearDown();
53 }
54
55 public static Test suite()
56 {
57 return new TestSuite(CorePanelGroupLayoutTest.class);
58 }
59
60 /**
61 * Tests the initial values for the component attributes.
62 */
63 public void testInitialAttributeValues()
64 {
65 CorePanelGroupLayout component = new CorePanelGroupLayout();
66 assertEquals(true, component.isRendered());
67 }
68
69 /**
70 * Tests the transparency of the component attribute by comparing
71 * bean accessor and mutator methods with attribute map accessor
72 * and mutator methods.
73 */
74 public void testAttributeTransparency()
75 {
76
77 }
78
79 /**
80 * Tests the transparency of the component facets by comparing
81 * bean accessor and mutator methods with facet map accessor
82 * and mutator methods.
83 */
84 public void testFacetTransparency()
85 {
86 CorePanelGroupLayout component = new CorePanelGroupLayout();
87 doTestFacetTransparency(component, CorePanelGroupLayout.SEPARATOR_FACET);
88 }
89
90 @Override
91 protected UIXPanel createTestComponent()
92 {
93 return new CorePanelGroupLayout();
94 }
95 }