KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > web > Tree2Test


1 package com.tonbeller.wcf.web;
2
3 import java.io.IOException JavaDoc;
4
5 import javax.xml.transform.TransformerException JavaDoc;
6
7 import org.jaxen.JaxenException;
8 import org.xml.sax.SAXException JavaDoc;
9
10 import com.meterware.httpunit.GetMethodWebRequest;
11 /**
12  * tests virtual grouping of tree nodes
13  * @author av
14  */

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