1 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 16 public class DivTest extends AbstractUITagTest { 17 19 20 public void testSimple() throws Exception { 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 |