01: /*
02: * Copyright 2007 Gerd Ziegler (www.gerdziegler.de)
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: * http://www.apache.org/licenses/LICENSE-2.0
07: * Unless required by applicable law or agreed to in writing,
08: * software distributed under the License is distributed on an
09: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10: * either express or implied. See the License for the specific
11: * language governing permissions and limitations under the License.
12: * 20.09.2007
13: * @author www.gerdziegler.de
14: */
15: package org.ztemplates.test.actions.urlhandler.match.test2;
16:
17: import junit.framework.TestCase;
18:
19: import org.apache.log4j.Logger;
20: import org.ztemplates.actions.urlhandler.tree.match.ZMatchTree;
21: import org.ztemplates.classpath.ZClassRepository;
22: import org.ztemplates.classpath.ZIClassRepository;
23:
24: public class TreeTest2 extends TestCase {
25: static Logger log = Logger.getLogger(TreeTest2.class);
26:
27: ZIClassRepository classRepo;
28:
29: protected void setUp() throws Exception {
30: super .setUp();
31: classRepo = new ZClassRepository(TreeTest2.class.getPackage()
32: .getName());
33: }
34:
35: protected void tearDown() throws Exception {
36: classRepo = null;
37: super .tearDown();
38: }
39:
40: public void testParseTree() throws Exception {
41: ZMatchTree tree = new ZMatchTree(classRepo);
42: System.out.println(tree.toConsoleString());
43: }
44: }
|