KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > html > HtmlSelectBooleanCheckboxTagCactusTest


1 /*
2  * Copyright 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.taglib.html;
17
18 import com.meterware.httpunit.HTMLElement;
19 import com.meterware.httpunit.WebResponse;
20
21 import org.apache.cactus.ServletTestCase;
22
23 import javax.servlet.RequestDispatcher JavaDoc;
24
25 /**
26  * @author Manfred Geiler (latest modification by $Author: matze $)
27  * @version $Revision: 1.5 $ $Date: 2004/10/13 11:50:56 $
28  * $Log: HtmlSelectBooleanCheckboxTagCactusTest.java,v $
29  * Revision 1.5 2004/10/13 11:50:56 matze
30  * renamed packages to org.apache
31  *
32  * Revision 1.4 2004/07/01 21:57:58 mwessendorf
33  * ASF switch
34  *
35  * Revision 1.3 2004/04/23 15:12:14 manolito
36  * inputHidden bug reported by Travis
37  *
38  * Revision 1.2 2004/04/23 13:57:54 manolito
39  * bug #940740
40  *
41  * Revision 1.1 2004/04/23 12:09:02 manolito
42  * cactus problems
43  *
44  */

45 public class HtmlSelectBooleanCheckboxTagCactusTest
46         extends ServletTestCase
47 {
48     //private static final Log log = LogFactory.getLog(HtmlSelectBooleanCheckboxTagCactusTest.class);
49

50     public HtmlSelectBooleanCheckboxTagCactusTest(String JavaDoc name) {
51         super(name);
52     }
53
54     public void testSimpleRender() throws Exception JavaDoc {
55         RequestDispatcher JavaDoc rd = config.getServletContext().getRequestDispatcher(
56                 "/HtmlSelectBooleanCheckboxTagCactusTest.jsf");
57         // render the page for the first time
58
rd.forward(request, response);
59     }
60
61     public void endSimpleRender(WebResponse response)
62             throws Exception JavaDoc
63     {
64         HTMLElement element = response.getElementWithID("testForm:selectBooleanCheckbox1");
65         assertNotNull(element);
66     }
67 }
68
Popular Tags