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 HtmlFrameTest extends UIComponentTestCase
33 {
34
35
36
37
38
39 public HtmlFrameTest(
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(HtmlFrameTest.class);
60 }
61
62
63
64
65 public void testInitialAttributeValues()
66 {
67 HtmlFrame component = new HtmlFrame();
68 assertTrue(component.isRendered());
69 }
70
71
72
73
74
75
76 public void testAttributeTransparency()
77 {
78 HtmlFrame component = new HtmlFrame();
79 doTestAttributeTransparency(component, "rendered",
80 Boolean.TRUE, Boolean.FALSE);
81 doTestAttributeTransparency(component, "source",
82 "http://foo", "http://bar");
83 doTestAttributeTransparency(component, "longDescURL",
84 "http://foo", "http://bar");
85 doTestAttributeTransparency(component, "name",
86 "foo", "bar");
87 doTestAttributeTransparency(component, "width",
88 "50%", "100%");
89 doTestAttributeTransparency(component, "height",
90 "25%", "75%");
91 doTestAttributeTransparency(component, "scrolling",
92 "on", "off");
93 }
94
95
96
97
98
99
100 public void testFacetTransparency()
101 {
102
103 }
104
105
106
107
108 public void testApplyRequestValues()
109 {
110 HtmlFrame component = new HtmlFrame();
111 doTestApplyRequestValues(component);
112 }
113
114
115
116
117 public void testProcessValidations()
118 {
119 HtmlFrame component = new HtmlFrame();
120 doTestProcessValidations(component);
121 }
122
123
124
125
126 public void testUpdateModelValues()
127 {
128 HtmlFrame component = new HtmlFrame();
129 doTestUpdateModelValues(component);
130 }
131
132
133
134
135 public void testInvokeApplication()
136 {
137 HtmlFrame component = new HtmlFrame();
138 doTestInvokeApplication(component, null);
139 }
140
141
142
143
144
145
146 public void testRenderResponse() throws IOException
147 {
148 HtmlFrame component = new HtmlFrame();
149 doTestRenderResponse(component);
150 }
151 }