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.html;
20
21 import java.io.IOException;
22
23 import junit.framework.Test;
24 import junit.framework.TestSuite;
25
26 import org.apache.myfaces.trinidad.component.UIComponentTestCase;
27
28
29
30
31
32 public class HtmlFrameBorderLayoutTest extends UIComponentTestCase
33 {
34
35
36
37
38
39 public HtmlFrameBorderLayoutTest(
40 String testName)
41 {
42 super(testName);
43 }
44
45 @Override
46 protected void setUp() throws Exception
47 {
48 super.setUp();
49 }
50
51 @Override
52 protected void tearDown() throws Exception
53 {
54 super.tearDown();
55 }
56
57 public static Test suite()
58 {
59 return new TestSuite(HtmlFrameBorderLayoutTest.class);
60 }
61
62
63
64
65 public void testInitialAttributeValues()
66 {
67 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
68 assertEquals(true, component.isRendered());
69 }
70
71
72
73
74
75
76 public void testAttributeTransparency()
77 {
78 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
79 doTestAttributeTransparency(component, "width",
80 "50%", "100%");
81 doTestAttributeTransparency(component, "height",
82 "25%", "75%");
83 }
84
85
86
87
88
89
90 public void testFacetTransparency()
91 {
92 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
93
94 doTestFacetTransparency(component, HtmlFrameBorderLayout.CENTER_FACET);
95 doTestFacetTransparency(component, HtmlFrameBorderLayout.TOP_FACET);
96 doTestFacetTransparency(component, HtmlFrameBorderLayout.BOTTOM_FACET);
97 doTestFacetTransparency(component, HtmlFrameBorderLayout.LEFT_FACET);
98 doTestFacetTransparency(component, HtmlFrameBorderLayout.RIGHT_FACET);
99 doTestFacetTransparency(component, HtmlFrameBorderLayout.START_FACET);
100 doTestFacetTransparency(component, HtmlFrameBorderLayout.END_FACET);
101 doTestFacetTransparency(component, HtmlFrameBorderLayout.INNER_LEFT_FACET);
102 doTestFacetTransparency(component, HtmlFrameBorderLayout.INNER_RIGHT_FACET);
103 doTestFacetTransparency(component, HtmlFrameBorderLayout.INNER_START_FACET);
104 doTestFacetTransparency(component, HtmlFrameBorderLayout.INNER_END_FACET);
105 doTestFacetTransparency(component, HtmlFrameBorderLayout.ALTERNATE_CONTENT_FACET);
106 }
107
108
109
110
111 public void testApplyRequestValues()
112 {
113 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
114 doTestApplyRequestValues(component);
115 }
116
117
118
119
120 public void testProcessValidations()
121 {
122 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
123 doTestProcessValidations(component);
124 }
125
126
127
128
129 public void testUpdateModelValues()
130 {
131 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
132 doTestUpdateModelValues(component);
133 }
134
135
136
137
138 public void testInvokeApplication()
139 {
140 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
141 doTestInvokeApplication(component, null);
142 }
143
144
145
146
147
148
149 public void testRenderResponse() throws IOException
150 {
151 HtmlFrameBorderLayout component = new HtmlFrameBorderLayout();
152 doTestRenderResponse(component);
153 }
154 }