KickJava   Java API By Example, From Geeks To Geeks.

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


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  * @author Matt Ho <a HREF="mailto:matt@enginegreen.com">&lt;matt@enginegreen.com&gt;</a>
13  * @version $Id: PasswordTest.java,v 1.10 2005/07/20 14:49:14 plightbo Exp $
14  */

15 public class PasswordTest extends AbstractUITagTest {
16     //~ Methods ////////////////////////////////////////////////////////////////
17

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