Japanese Using JDummy with Groovy Add comment to Wiki View in Wiki Edit Wiki page Printable Version

JDummy is a thin API which sits above JMock. It allows very succinct expectation setting code when the expectation code would normally involve many stubs.

The sections below illustrate using JDummy for the mocking parts of Using Testing Frameworks with Groovy.

The Item Storer Example

We are going to consider how you might use JDummy as part of testing the Item Storer Example.

Here is how we can test JavaStorer:

Note: Our example is so simple, that JDummy's power is not really illustrated here.



Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified