KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > views > jsp > ui > HiddenTest


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork.views.jsp.ui;
6
7 import com.opensymphony.webwork.TestAction;
8 import com.opensymphony.webwork.views.jsp.AbstractUITagTest;
9
10
11 /**
12  * User: plightbo
13  * Date: Oct 16, 2003
14  * Time: 10:49:54 PM
15  */

16 public class HiddenTest extends AbstractUITagTest {
17     //~ Methods ////////////////////////////////////////////////////////////////
18

19     public void testSimple() throws Exception JavaDoc {
20         TestAction testAction = (TestAction) action;
21         testAction.setFoo("bar");
22
23         HiddenTag tag = new HiddenTag();
24         tag.setPageContext(pageContext);
25         tag.setLabel("mylabel");
26         tag.setName("myname");
27         tag.setValue("%{foo}");
28
29         tag.doStartTag();
30         tag.doEndTag();
31
32         verify(TextFieldTag.class.getResource("Hidden-1.txt"));
33     }
34 }
35
Popular Tags