1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.struts2.dojo.views.jsp.ui;
23
24 import org.apache.struts2.dojo.TestAction;
25
26 /***
27 */
28 public class AnchorTest extends AbstractUITagTest {
29
30 public void testSimple() throws Exception {
31 TestAction testAction = (TestAction) action;
32 testAction.setFoo("bar");
33
34 AnchorTag tag = new AnchorTag();
35 tag.setPageContext(pageContext);
36
37 tag.setId("mylink");
38 tag.setHref("a");
39 tag.setErrorText("c");
40 tag.setLoadingText("d");
41 tag.setBeforeNotifyTopics("e");
42 tag.setAfterNotifyTopics("f");
43 tag.setListenTopics("g");
44 tag.setTargets("h");
45 tag.setHandler("i");
46 tag.setNotifyTopics("j");
47 tag.setIndicator("k");
48 tag.setShowErrorTransportText("true");
49 tag.setShowLoadingText("true");
50 tag.setErrorNotifyTopics("l");
51 tag.setHighlightColor("m");
52 tag.setHighlightDuration("n");
53 tag.setValidate("true");
54 tag.setAjaxAfterValidation("true");
55 tag.setSeparateScripts("true");
56 tag.setTransport("o");
57 tag.setParseContent("false");
58 tag.doStartTag();
59 tag.doEndTag();
60
61 verify(AnchorTest.class.getResource("href-1.txt"));
62 }
63
64 }