1 package com.tonbeller.wcf.web; 2 3 import java.io.IOException ; 4 5 import javax.xml.transform.TransformerException ; 6 7 import org.jaxen.JaxenException; 8 import org.xml.sax.SAXException ; 9 10 import com.meterware.httpunit.GetMethodWebRequest; 11 12 public class TreeFormTest extends HttpUnitTestCase { 13 14 public TreeFormTest(String arg0) { 15 super(arg0); 16 } 17 18 private void check(String name) throws JaxenException, IOException , SAXException , TransformerException { 19 utils.check(name, "filter.xsl", "form01"); 20 } 21 22 public void testTree() throws Exception { 23 wc.sendRequest(new GetMethodWebRequest(servletUrl + "/treeform.jsp")); 24 check("treeform-01"); 25 26 utils.submitCell("form01", "treeform.tree", 1, 0, 0); 28 check("treeform-02"); 29 utils.submitCell("form01", "treeform.tree", 3, 0, 0); 31 check("treeform-03"); 32 utils.followCell("treeform.tree", 6, 0, 0); 34 check("treeform-04"); 35 36 } 37 38 } 39 | Popular Tags |