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 HtmlCellFormatTest extends UIComponentTestCase
33 {
34
35
36
37
38
39 public HtmlCellFormatTest(
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(HtmlCellFormatTest.class);
60 }
61
62
63
64
65 public void testInitialAttributeValues()
66 {
67 HtmlCellFormat component = new HtmlCellFormat();
68 assertTrue(component.isRendered());
69 }
70
71
72
73
74
75
76 public void testAttributeTransparency()
77 {
78 HtmlCellFormat component = new HtmlCellFormat();
79 doTestAttributeTransparency(component, "columnSpan",
80 new Integer(1), new Integer(2));
81 doTestAttributeTransparency(component, "halign",
82 "top", "bottom");
83 doTestAttributeTransparency(component, "header",
84 Boolean.TRUE, Boolean.FALSE);
85 doTestAttributeTransparency(component, "headers",
86 "h1 h2", "h3 h4");
87 doTestAttributeTransparency(component, "height",
88 "50%", "100%");
89 doTestAttributeTransparency(component, "rowSpan",
90 new Integer(3), new Integer(4));
91 doTestAttributeTransparency(component, "shortText",
92 "foo", "bar");
93 doTestAttributeTransparency(component, "valign",
94 "left", "right");
95 doTestAttributeTransparency(component, "width",
96 "25%", "75%");
97 doTestAttributeTransparency(component, "wrappingDisabled",
98 Boolean.TRUE, Boolean.FALSE);
99 }
100
101
102
103
104
105
106 public void testFacetTransparency()
107 {
108
109 }
110
111
112
113
114 public void testApplyRequestValues()
115 {
116 HtmlCellFormat component = new HtmlCellFormat();
117 doTestApplyRequestValues(component);
118 }
119
120
121
122
123 public void testProcessValidations()
124 {
125 HtmlCellFormat component = new HtmlCellFormat();
126 doTestProcessValidations(component);
127 }
128
129
130
131
132 public void testUpdateModelValues()
133 {
134 HtmlCellFormat component = new HtmlCellFormat();
135 doTestUpdateModelValues(component);
136 }
137
138
139
140
141 public void testInvokeApplication()
142 {
143 HtmlCellFormat component = new HtmlCellFormat();
144 doTestInvokeApplication(component, null);
145 }
146
147
148
149
150
151
152 public void testRenderResponse() throws IOException
153 {
154 HtmlCellFormat component = new HtmlCellFormat();
155 doTestRenderResponse(component);
156 }
157 }