Search in sources :

Example 66 with GroovyObject

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

the class PatternSetAntBuilderDelegate method logical.

private static Object logical(Object node, String op, final Action<Object> withNode) {
    GroovyObject groovyObject = (GroovyObject) node;
    groovyObject.invokeMethod(op, new Closure(null, null) {

        void doCall() {
            withNode.execute(getDelegate());
        }
    });
    return node;
}
Also used : Closure(groovy.lang.Closure) GroovyObject(groovy.lang.GroovyObject)

Example 67 with GroovyObject

use of groovy.lang.GroovyObject in project groovy-core by groovy.

the class RunBugsTest method testByteIndexBug.

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

Example 68 with GroovyObject

use of groovy.lang.GroovyObject in project groovy-core by groovy.

the class RunBugsTest method testCastBug.

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

Example 69 with GroovyObject

use of groovy.lang.GroovyObject in project groovy-core by groovy.

the class RunBugsTest method testMarkupAndMethodBug.

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

Example 70 with GroovyObject

use of groovy.lang.GroovyObject in project groovy-core by groovy.

the class RunBugsTest method testStaticMethodCall.

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

Aggregations

GroovyObject (groovy.lang.GroovyObject)142 GroovyClassLoader (groovy.lang.GroovyClassLoader)15 Closure (groovy.lang.Closure)11 File (java.io.File)8 Map (java.util.Map)8 Decorator (com.opensymphony.module.sitemesh.Decorator)7 GroovyRuntimeException (groovy.lang.GroovyRuntimeException)7 MetaClass (groovy.lang.MetaClass)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