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 15 public class Tree2Test extends HttpUnitTestCase { 16 17 public Tree2Test(String arg0) { 18 super(arg0); 19 } 20 21 private void check(String name) throws JaxenException, IOException , SAXException , TransformerException { 22 utils.check(name, "filter.xsl", "form01"); 23 } 24 25 public void testTreeGroups() throws Exception { 26 wc.sendRequest(new GetMethodWebRequest(servletUrl + "/treedemo2.jsp")); 27 check("tree2-01"); 28 utils.submitCell("form01", "tree02", 1, 0, 0); 30 utils.submitCell("form01", "tree02", 2, 0, 0); 32 utils.submitCell("form01", "tree02", 4, 0, 0); 34 check("tree2-02"); 35 } 36 37 } 38 | Popular Tags |