Search in sources :

Example 11 with GroovyObject

use of groovy.lang.GroovyObject in project groovy by apache.

the class RunBugsTest method testSuperMethod2Bug.

public void testSuperMethod2Bug() throws Exception {
    GroovyObject object = compile("src/test/groovy/bugs/SuperMethod2Bug.groovy");
    object.invokeMethod("testBug", null);
}
Also used : GroovyObject(groovy.lang.GroovyObject)

Example 12 with GroovyObject

use of groovy.lang.GroovyObject in project groovy by apache.

the class RunBugsTest method testClosureVariableBug.

public void testClosureVariableBug() throws Exception {
    GroovyObject object = compile("src/test/groovy/bugs/ClosureVariableBug.groovy");
    object.invokeMethod("testBug", null);
}
Also used : GroovyObject(groovy.lang.GroovyObject)

Example 13 with GroovyObject

use of groovy.lang.GroovyObject in project groovy by apache.

the class RunClosureTest method testStaticClosureBug.

public void testStaticClosureBug() throws Exception {
    GroovyObject object = compile("src/test/groovy/bugs/StaticClosurePropertyBug.groovy");
    object.invokeMethod("testCallStaticClosure", null);
}
Also used : GroovyObject(groovy.lang.GroovyObject)

Example 14 with GroovyObject

use of groovy.lang.GroovyObject in project groovy by apache.

the class NodePrinterTest method testSmallTree.

public void testSmallTree() throws Exception {
    GroovyObject object = compile("src/test/groovy/tree/SmallTreeTest.groovy");
    object.invokeMethod("testTree", null);
}
Also used : GroovyObject(groovy.lang.GroovyObject)

Example 15 with GroovyObject

use of groovy.lang.GroovyObject in project groovy by apache.

the class NodePrinterTest method testTree.

public void testTree() throws Exception {
    GroovyObject object = compile("src/test/groovy/tree/TreeTest.groovy");
    object.invokeMethod("testTree", null);
}
Also used : GroovyObject(groovy.lang.GroovyObject)

Aggregations

GroovyObject (groovy.lang.GroovyObject)141 GroovyClassLoader (groovy.lang.GroovyClassLoader)14 Closure (groovy.lang.Closure)11 Map (java.util.Map)8 Decorator (com.opensymphony.module.sitemesh.Decorator)7 GroovyRuntimeException (groovy.lang.GroovyRuntimeException)7 MetaClass (groovy.lang.MetaClass)7 File (java.io.File)7 HashMap (java.util.HashMap)7 GrailsWebRequest (org.grails.web.servlet.mvc.GrailsWebRequest)7 Page (com.opensymphony.module.sitemesh.Page)5 HTMLPageParser (com.opensymphony.module.sitemesh.parser.HTMLPageParser)5 Config (grails.config.Config)5 InvocationTargetException (java.lang.reflect.InvocationTargetException)5 ServletContext (javax.servlet.ServletContext)5 PropertySourcesConfig (org.grails.config.PropertySourcesConfig)5 MockApplicationContext (org.grails.support.MockApplicationContext)5 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)5 MockServletConfig (org.springframework.mock.web.MockServletConfig)5 ArrayList (java.util.ArrayList)4