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 public class BindTest extends AbstractUITagTest {
27 public void testAll() throws Exception {
28 TestAction testAction = (TestAction) action;
29 testAction.setFoo("bar");
30
31 BindTag tag = new BindTag();
32 tag.setPageContext(pageContext);
33
34 tag.setId("a");
35 tag.setHref("b");
36 tag.setLoadingText("c");
37 tag.setErrorText("d");
38 tag.setListenTopics("e");
39 tag.setBeforeNotifyTopics("f");
40 tag.setAfterNotifyTopics("g");
41 tag.setHandler("h");
42 tag.setNotifyTopics("k");
43 tag.setIndicator("l");
44 tag.setShowLoadingText("true");
45 tag.setErrorNotifyTopics("m");
46 tag.setSources("n");
47 tag.setEvents("o");
48 tag.setHighlightColor("p");
49 tag.setHighlightDuration("q");
50 tag.setValidate("true");
51 tag.setSeparateScripts("true");
52 tag.setTransport("q");
53 tag.setParseContent("false");
54 tag.doStartTag();
55 tag.doEndTag();
56
57 verify(BindTest.class.getResource("Bind-1.txt"));
58 }
59 }