| groovy.util.GroovyTestCase org.codehaus.groovy.runtime.PropertyTest
testComponentParent | public void testComponentParent()(Code) | | |
testListCoercionProperty | public void testListCoercionProperty() throws Exception(Code) | | todo this is no longer possible in new groovy
public void testMethodProperty() throws Exception {
Object value = InvokerHelper.getProperty(this, "getCheese");
assertTrue("Should have returned a closure: " + value, value instanceof Closure);
Object result = ((Closure) value).call();
assertEquals("result of closure call", getCheese(), result);
System.out.println("Closure: " + value + " and cheese: " + result);
}
|
testListCoercionPropertyOnJFrame | public void testListCoercionPropertyOnJFrame() throws Exception(Code) | | |
testListNavigationProperty | public void testListNavigationProperty() throws Exception(Code) | | |
testListOfListNavigationProperty | public void testListOfListNavigationProperty() throws Exception(Code) | | |
testMapEntryProperty | public void testMapEntryProperty() throws Exception(Code) | | |
testNodeNavigationProperty | public void testNodeNavigationProperty() throws Exception(Code) | | |
testStaticProperty | public void testStaticProperty() throws Exception(Code) | | todo this is no longer possible in new groovy
public void testUsingMethodProperty() throws Exception {
DummyBean bean = new DummyBean();
assertGetSetProperty(bean, "name", "James", "Bob");
Object value = InvokerHelper.getProperty(bean, "getName");
assertTrue("Should have returned a closure: " + value, value instanceof Closure);
Closure closure = (Closure) value;
Object result = closure.call(null);
assertEquals("Result of call to closure", "Bob", result);
}
|
testUsingInPropertyOnProcessViaGroovyMethod | public void testUsingInPropertyOnProcessViaGroovyMethod() throws Exception(Code) | | |
|
|