01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.jsp.ui;
06:
07: import com.opensymphony.webwork.TestAction;
08: import com.opensymphony.webwork.views.jsp.AbstractUITagTest;
09:
10: /**
11: * @author Ian Roughley<a href="mailto:ian@fdar.com"><ian@fdar.com></a>
12: * @version $Id: AnchorTest.java 1758 2005-12-21 00:24:24Z plightbo $
13: */
14: public class AnchorTest extends AbstractUITagTest {
15:
16: public void testSimple() throws Exception {
17: TestAction testAction = (TestAction) action;
18: testAction.setFoo("bar");
19:
20: AnchorTag tag = new AnchorTag();
21: tag.setPageContext(pageContext);
22:
23: tag.setId("mylink");
24: tag.setTheme("ajax");
25: tag.setHref("a");
26: tag.setErrorText("c");
27: tag.setShowErrorTransportText("true");
28: tag.setNotifyTopics("g");
29: tag.setAfterLoading("h");
30:
31: tag.doStartTag();
32: tag.doEndTag();
33:
34: verify(AnchorTest.class.getResource("href-1.txt"));
35: }
36:
37: }
|