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;
}
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);
}
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);
}
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);
}
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);
}
Aggregations