Java Doc for InvokeMethodTest.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » runtime » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » groovy 1.0 » org.codehaus.groovy.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


groovy.util.GroovyTestCase
   org.codehaus.groovy.runtime.InvokeMethodTest

InvokeMethodTest
public class InvokeMethodTest extends GroovyTestCase (Code)
Tests method invocation
author:
   James Strachan
version:
   $Revision: 4099 $


Field Summary
protected  Invokerinvoker
    


Method Summary
protected  ObjectaProtectedMethod(String param)
    
protected  voidassertMethodCall(Object object, String method, Object param, Object expected)
    
protected  voidassertMethodChooser(Object expected, Object arguments)
    
public  ObjectbadOverload(String a, Object b)
    
public  ObjectbadOverload(Object a, String b)
    
protected  Objectinvoke(Object object, String method, Object args)
    
public  ObjectmethodTakesString(String x)
    
public  ObjectmockCallWithNoParams()
    
public  IntegermockCallWithOneCollectionParam(Object collection)
    
public  ObjectmockCallWithOneNullParam(Object value)
    
public  ObjectmockCallWithOneParam(Object value)
    
public  ObjectmockOverloadedMethod()
    
public  ObjectmockOverloadedMethod(Object object)
    
public  ObjectmockOverloadedMethod(Number object)
    
public  ObjectmockOverloadedMethod(String object)
    
public  ObjectmockOverloadedMethod(Object object, Object bar)
    
public  ObjectmockOverloadedMethod(Object object, Object[] array)
    
public  ObjectoverloadedRemove(int idx)
    
public  ObjectoverloadedRemove(Object value)
    
public  voidtestBadBDToDoubleCoerce()
    
public  voidtestBaseClassMethod()
    
public  voidtestBaseFailMethod()
    
public  voidtestCallIntMethodWithInteger()
    
public  voidtestCallListRemove()
    
public  voidtestClassMethod()
    
public  voidtestCoerceGStringToString()
    
public  voidtestCoerceGStringToStringOnGetBytes()
    
public  voidtestCollectionMethods()
    
public  voidtestDivideNumbers()
    
public  voidtestInstanceofWorksForArray()
    
public  voidtestInvalidOverloading()
    
public  voidtestInvokeMethodNoParams()
    
public  voidtestInvokeMethodOnNullObject()
    
public  voidtestInvokeMethodOneCollectionParameter()
    
public  voidtestInvokeMethodOneParam()
    
public  voidtestInvokeMethodOneParamWhichIsNull()
    
public  voidtestInvokeMethodWithWrongNumberOfParameters()
    
public  voidtestInvokeOverloadedMethodWithOneParamWhichIsNull()
    
public  voidtestInvokePrintlnMethod()
    
public  voidtestInvokeUnknownMethod()
    
public  voidtestListGetWithRange()
    
public  voidtestMethodChooserNoParams()
    
public  voidtestMethodChooserNull()
    
public  voidtestMethodChooserNumber()
    
public  voidtestMethodChooserObject()
    
public  voidtestMethodChooserString_FAILS()
    
public  voidtestMethodChooserTwoParams()
    
public  voidtestMethodChooserTwoParamsWithSecondAnObjectArray()
    
public  voidtestNewMethods()
    
public  voidtestPlusWithNull()
    
public  voidtestPrivateMethod()
    
public  voidtestProtectedMethod()
    
public  voidtestSetLenientOnDateFormat()
    
public  voidtestStaticMethod()
    
public  voidtestStringSubstringMethod()
    
public  voidtestToArrayOnList()
    

Field Detail
invoker
protected Invoker invoker(Code)





Method Detail
aProtectedMethod
protected Object aProtectedMethod(String param)(Code)



assertMethodCall
protected void assertMethodCall(Object object, String method, Object param, Object expected)(Code)



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



badOverload
public Object badOverload(String a, Object b)(Code)



badOverload
public Object badOverload(Object a, String b)(Code)



invoke
protected Object invoke(Object object, String method, Object args) throws Throwable(Code)



methodTakesString
public Object methodTakesString(String x)(Code)



mockCallWithNoParams
public Object mockCallWithNoParams()(Code)



mockCallWithOneCollectionParam
public Integer mockCallWithOneCollectionParam(Object collection)(Code)



mockCallWithOneNullParam
public Object mockCallWithOneNullParam(Object value)(Code)



mockCallWithOneParam
public Object mockCallWithOneParam(Object value)(Code)



mockOverloadedMethod
public Object mockOverloadedMethod()(Code)



mockOverloadedMethod
public Object mockOverloadedMethod(Object object)(Code)



mockOverloadedMethod
public Object mockOverloadedMethod(Number object)(Code)



mockOverloadedMethod
public Object mockOverloadedMethod(String object)(Code)



mockOverloadedMethod
public Object mockOverloadedMethod(Object object, Object bar)(Code)



mockOverloadedMethod
public Object mockOverloadedMethod(Object object, Object[] array)(Code)



overloadedRemove
public Object overloadedRemove(int idx)(Code)



overloadedRemove
public Object overloadedRemove(Object value)(Code)



testBadBDToDoubleCoerce
public void testBadBDToDoubleCoerce() throws Throwable(Code)



testBaseClassMethod
public void testBaseClassMethod() throws Throwable(Code)



testBaseFailMethod
public void testBaseFailMethod() throws Throwable(Code)



testCallIntMethodWithInteger
public void testCallIntMethodWithInteger() throws Throwable(Code)



testCallListRemove
public void testCallListRemove() throws Throwable(Code)



testClassMethod
public void testClassMethod() throws Throwable(Code)



testCoerceGStringToString
public void testCoerceGStringToString() throws Throwable(Code)



testCoerceGStringToStringOnGetBytes
public void testCoerceGStringToStringOnGetBytes() throws Throwable(Code)



testCollectionMethods
public void testCollectionMethods() throws Throwable(Code)



testDivideNumbers
public void testDivideNumbers() 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)



testNewMethods
public void testNewMethods() throws Throwable(Code)



testPlusWithNull
public void testPlusWithNull() throws Throwable(Code)



testPrivateMethod
public void testPrivateMethod() throws Throwable(Code)



testProtectedMethod
public void testProtectedMethod() throws Throwable(Code)



testSetLenientOnDateFormat
public void testSetLenientOnDateFormat() throws Throwable(Code)



testStaticMethod
public void testStaticMethod() throws Throwable(Code)



testStringSubstringMethod
public void testStringSubstringMethod() throws Throwable(Code)



testToArrayOnList
public void testToArrayOnList() throws Throwable(Code)



Fields inherited from groovy.util.GroovyTestCase
protected static Logger log(Code)(Java Doc)

Methods inherited from groovy.util.GroovyTestCase
protected void assertArrayEquals(Object[] expected, Object[] value)(Code)(Java Doc)
protected void assertContains(char expected, char[] array)(Code)(Java Doc)
protected void assertContains(int expected, int[] array)(Code)(Java Doc)
protected void assertInspect(Object value, String expected)(Code)(Java Doc)
protected void assertLength(int length, char[] array)(Code)(Java Doc)
protected void assertLength(int length, int[] array)(Code)(Java Doc)
protected void assertLength(int length, Object[] array)(Code)(Java Doc)
protected void assertScript(String script) throws Exception(Code)(Java Doc)
protected void assertToString(Object value, String expected)(Code)(Java Doc)
protected String fixEOLs(String value)(Code)(Java Doc)
public String getMethodName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected String getTestClassName()(Code)(Java Doc)
public static boolean notYetImplemented(TestCase caller)(Code)(Java Doc)
public boolean notYetImplemented()(Code)(Java Doc)
protected String shouldFail(Closure code)(Code)(Java Doc)
protected String shouldFail(Class clazz, Closure code)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.