1 46 47 package org.codehaus.groovy.runtime; 48 49 import groovy.lang.Closure; 50 import groovy.lang.GroovyObjectSupport; 51 52 58 public class MockGroovyObject extends GroovyObjectSupport { 59 60 public Object methodThatFails() { 61 return invokeMethod("nonExistentMethod", "hello"); 62 } 63 64 public Object callClosure(Closure closure) { 65 return closure.call(this); 66 } 67 68 } 69 | Popular Tags |