| groovy.util.GroovyTestCase org.codehaus.groovy.runtime.InvokeMethodTest
Method Summary | |
protected Object | aProtectedMethod(String param) | protected void | assertMethodCall(Object object, String method, Object param, Object expected) | protected void | assertMethodChooser(Object expected, Object arguments) | public Object | badOverload(String a, Object b) | public Object | badOverload(Object a, String b) | protected Object | invoke(Object object, String method, Object args) | public Object | methodTakesString(String x) | public Object | mockCallWithNoParams() | public Integer | mockCallWithOneCollectionParam(Object collection) | public Object | mockCallWithOneNullParam(Object value) | public Object | mockCallWithOneParam(Object value) | public Object | mockOverloadedMethod() | public Object | mockOverloadedMethod(Object object) | public Object | mockOverloadedMethod(Number object) | public Object | mockOverloadedMethod(String object) | public Object | mockOverloadedMethod(Object object, Object bar) | public Object | mockOverloadedMethod(Object object, Object[] array) | public Object | overloadedRemove(int idx) | public Object | overloadedRemove(Object value) | public void | testBadBDToDoubleCoerce() | public void | testBaseClassMethod() | public void | testBaseFailMethod() | public void | testCallIntMethodWithInteger() | public void | testCallListRemove() | public void | testClassMethod() | public void | testCoerceGStringToString() | public void | testCoerceGStringToStringOnGetBytes() | public void | testCollectionMethods() | public void | testDivideNumbers() | public void | testInstanceofWorksForArray() | public void | testInvalidOverloading() | public void | testInvokeMethodNoParams() | public void | testInvokeMethodOnNullObject() | public void | testInvokeMethodOneCollectionParameter() | public void | testInvokeMethodOneParam() | public void | testInvokeMethodOneParamWhichIsNull() | public void | testInvokeMethodWithWrongNumberOfParameters() | public void | testInvokeOverloadedMethodWithOneParamWhichIsNull() | public void | testInvokePrintlnMethod() | public void | testInvokeUnknownMethod() | public void | testListGetWithRange() | public void | testMethodChooserNoParams() | public void | testMethodChooserNull() | public void | testMethodChooserNumber() | public void | testMethodChooserObject() | public void | testMethodChooserString_FAILS() | public void | testMethodChooserTwoParams() | public void | testMethodChooserTwoParamsWithSecondAnObjectArray() | public void | testNewMethods() | public void | testPlusWithNull() | public void | testPrivateMethod() | public void | testProtectedMethod() | public void | testSetLenientOnDateFormat() | public void | testStaticMethod() | public void | testStringSubstringMethod() | public void | testToArrayOnList() |
assertMethodChooser | protected void assertMethodChooser(Object expected, Object arguments) throws Throwable(Code) | | Asserts that invoking the method chooser finds the right overloaded
method implementation
Parameters: expected - is the expected value of the method Parameters: arguments - the argument(s) to the method invocation |
mockCallWithNoParams | public Object mockCallWithNoParams()(Code) | | |
mockCallWithOneCollectionParam | public Integer mockCallWithOneCollectionParam(Object collection)(Code) | | |
mockOverloadedMethod | public Object mockOverloadedMethod()(Code) | | |
overloadedRemove | public Object overloadedRemove(int idx)(Code) | | |
testBadBDToDoubleCoerce | public void testBadBDToDoubleCoerce() throws Throwable(Code) | | |
testBaseClassMethod | public void testBaseClassMethod() throws Throwable(Code) | | |
testCallIntMethodWithInteger | public void testCallIntMethodWithInteger() throws Throwable(Code) | | |
testCoerceGStringToString | public void testCoerceGStringToString() throws Throwable(Code) | | |
testCoerceGStringToStringOnGetBytes | public void testCoerceGStringToStringOnGetBytes() throws Throwable(Code) | | |
testCollectionMethods | public void testCollectionMethods() throws Throwable(Code) | | |
testInstanceofWorksForArray | public void testInstanceofWorksForArray()(Code) | | |
testInvalidOverloading | public void testInvalidOverloading() throws Throwable(Code) | | |
testInvokeMethodNoParams | public void testInvokeMethodNoParams() throws Throwable(Code) | | |
testInvokeMethodOnNullObject | public void testInvokeMethodOnNullObject() throws Throwable(Code) | | |
testInvokeMethodOneCollectionParameter | public void testInvokeMethodOneCollectionParameter() throws Throwable(Code) | | |
testInvokeMethodOneParam | public void testInvokeMethodOneParam() throws Throwable(Code) | | |
testInvokeMethodOneParamWhichIsNull | public void testInvokeMethodOneParamWhichIsNull() throws Throwable(Code) | | |
testInvokeMethodWithWrongNumberOfParameters | public void testInvokeMethodWithWrongNumberOfParameters() throws Throwable(Code) | | |
testInvokeOverloadedMethodWithOneParamWhichIsNull | public void testInvokeOverloadedMethodWithOneParamWhichIsNull() throws Throwable(Code) | | |
testInvokePrintlnMethod | public void testInvokePrintlnMethod() throws Throwable(Code) | | |
testInvokeUnknownMethod | public void testInvokeUnknownMethod() throws Throwable(Code) | | |
testListGetWithRange | public void testListGetWithRange() throws Throwable(Code) | | |
testMethodChooserNoParams | public void testMethodChooserNoParams() throws Throwable(Code) | | |
testMethodChooserNull | public void testMethodChooserNull() throws Throwable(Code) | | |
testMethodChooserNumber | public void testMethodChooserNumber() throws Throwable(Code) | | |
testMethodChooserObject | public void testMethodChooserObject() throws Throwable(Code) | | |
testMethodChooserString_FAILS | public void testMethodChooserString_FAILS() throws Throwable(Code) | | |
testMethodChooserTwoParams | public void testMethodChooserTwoParams() throws Throwable(Code) | | |
testMethodChooserTwoParamsWithSecondAnObjectArray | public void testMethodChooserTwoParamsWithSecondAnObjectArray() throws Throwable(Code) | | |
testProtectedMethod | public void testProtectedMethod() throws Throwable(Code) | | |
testSetLenientOnDateFormat | public void testSetLenientOnDateFormat() throws Throwable(Code) | | |
testStringSubstringMethod | public void testStringSubstringMethod() throws Throwable(Code) | | |
|
|