1 46 47 package org.codehaus.groovy.classgen; 48 49 import groovy.lang.GroovyShell; 50 51 import java.io.File ; 52 53 58 public class MainTest extends TestSupport { 59 60 public void testMainMethod() throws Exception { 61 GroovyShell shell = new GroovyShell(); 62 shell.run(new File ("src/test/groovy/SampleMain.groovy"), new String [] { "A", "B", "C" }); 63 } 64 } 65 | Popular Tags |