groovy

All-Groovy Mock support

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-5
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Provide Mock support with pure Groovy means, i.e. ProxyMetaClass and Interceptors.
No external mock library needed any longer.

Make use of Ranges and Closures for demanding behaviour.

Allow strict and loose expectations in terms of sequence dependency between demand specifications and effected method calls.

Issue Links

Activity

Hide
Dierk Koenig added a comment -

Hein's Issue for moving to JMock should now be obsolete.

Show
Dierk Koenig added a comment - Hein's Issue for moving to JMock should now be obsolete.
Hide
Dierk Koenig added a comment -

Now implemented in the
groovy.mock.interceptor
package.

Not sure whether all namings are ok. Native speaker may have better suggestions.

Small isssue with times{} open.

Old impl. can now be removed
After that, I suggest we move the package one level up.

The 42 testcases should give a comprehensive description.

Show
Dierk Koenig added a comment - Now implemented in the groovy.mock.interceptor package. Not sure whether all namings are ok. Native speaker may have better suggestions. Small isssue with times{} open. Old impl. can now be removed After that, I suggest we move the package one level up. The 42 testcases should give a comprehensive description.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: