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 Tree4Test extends HttpUnitTestCase { 16 17 public Tree4Test(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 testLazySelectionExpansion() throws Exception { 26 GetMethodWebRequest gmr = new GetMethodWebRequest(servletUrl + "/treedemo4.jsp"); 27 gmr.setParameter("init", "true"); 28 wc.sendRequest(gmr); 29 check("tree4-01"); 30 31 utils.submitCell("form01", "tree04", 3, 0, 0); 33 check("tree4-02"); 34 35 utils.submitCell("form01", "tree04", 4, 0, 0); 37 check("tree4-03"); 38 39 } 40 41 } 42 | Popular Tags |