1 46 47 package groovy.tree; 48 49 import java.util.logging.Logger ; 50 51 import groovy.lang.GroovyObject; 52 53 import org.codehaus.groovy.classgen.TestSupport; 54 55 60 public class NodePrinterTest extends TestSupport { 61 62 public void testTree() throws Exception { 63 GroovyObject object = compile("src/test/groovy/tree/TreeTest.groovy"); 64 object.invokeMethod("testTree", null); 65 } 66 67 public void testVerboseTree() throws Exception { 68 GroovyObject object = compile("src/test/groovy/tree/VerboseTreeTest.groovy"); 69 object.invokeMethod("testTree", null); 70 } 71 72 public void testSmallTree() throws Exception { 73 GroovyObject object = compile("src/test/groovy/tree/SmallTreeTest.groovy"); 74 object.invokeMethod("testTree", null); 75 } 76 77 public void testLittleClosure() throws Exception { 78 GroovyObject object = compile("src/test/groovy/LittleClosureTest.groovy"); 79 object.invokeMethod("testClosure", null); 80 } 81 82 public void testNestedClosureBug() throws Exception { 83 GroovyObject object = compile("src/test/groovy/tree/NestedClosureBugTest.groovy"); 84 object.invokeMethod("testNestedClosureBug", null); 85 } 86 87 public void testClosureClassLoaderBug() throws Exception { 88 GroovyObject object = compile("src/test/groovy/tree/ClosureClassLoaderBug.groovy"); 89 object.invokeMethod("testTree", null); 90 } 91 92 public void testLogging() { 93 Logger log = Logger.getLogger(getClass().getName()); 94 log.info("Logging using JDK 1.4 logging"); 95 } 96 } 97 | Popular Tags |