[root]/groovy/groovy-core/src/test/groovy/mock/example
Remove all @Property usage
1 lines of code changed in:
GROOVY-1246: First shot of an all-groovy Mock support. Supports strict mocks and loose stubs.
15 lines of code changed in:
Missing def, required by Jochen's changes if we enable the JSR scope checks
2 lines of code changed in:
sorry, there was a missing brace...
2 lines of code changed in:
re-enable commented GroovyMock example test and make them pass by proper use of @Property
4 lines of code changed in:
Changed the closure token separator from :: to -> (hope it's the last time we change our mind)
1 lines of code changed in:
* Migrated the groovy sources in groovy-core to jsr parser syntax
* Fixed non-deterministic lookup error on closure expressions
1 lines of code changed in:
updated the test cases to use JSR parser syntax
1 lines of code changed in:
Apologies for the monster commit everyone - was stuck travelling for 24 hours so had heaps of time to hack groovy - without WiFi in Houston or Gatwick :(
here's a summary of the changes
* refactored the MetaClass method invocation code to be much cleaner (no List and Object[] crap) the dispatcher can now handle overloading of 1 type of a multi-arg list.
* fixed bad exception message when exceptions occur inside a closure which lead to a wierd exception message that was very confusing (due to an exception being wrapped). Added a test case to demonstrate this now works fine.
* added a NoSuchMethodException for better exception
* added better error checking validation messages & exceptions for bad class names & known properties & methods.
* attempted to tidy up the line numbers when exceptions occur; its not totally working yet :)
* tidied up class resolving code so that classpath & compile unit class resolutions work much cleaner.
* uncommented a bunch of test cases. If you search for @todo in the *.groovy files you'll often see little bits of tests that are commented out until some issue with the parser or runtime is sorted out.
* the while() loop appears to be working now
3 lines of code changed in:
Added GroovyMock library for mock testing of groovy objects
51 lines of code changed in: