KickJava   Java API By Example, From Geeks To Geeks.

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


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 import com.opensymphony.webwork.views.jsp.ui.DivTag;
10
11
12 /**
13  * @author Ian Roughley<a HREF="mailto:ian@fdar.com">&lt;ian@fdar.com&gt;</a>
14  * @version $Id: DivTest.java,v 1.1 2005/08/11 01:48:01 roughley Exp $
15  */

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

19
20     public void testSimple() throws Exception JavaDoc {
21         TestAction testAction = (TestAction) action;
22         testAction.setFoo("bar");
23
24         DivTag tag = new DivTag();
25         tag.setPageContext(pageContext);
26
27         tag.setId("mylabel");
28         tag.setTheme("ajax");
29         tag.setHref("a");
30         tag.setLoadingText("b");
31         tag.setErrorText("c");
32         tag.setShowErrorTransportText("true");
33         tag.setDelay("4000");
34         tag.setUpdateFreq("1000");
35         tag.setListenTopics("g");
36         tag.setAfterLoading("h");
37
38         tag.doStartTag();
39         tag.doEndTag();
40
41         verify(DivTest.class.getResource("div-1.txt"));
42     }
43
44 }
45
Popular Tags