-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
Ben Alex opened SPR-6274 and commented
Spring Roo presently supports creation of mocks for static methods. As per email discussion between Juergen, Ramnivas and Ben, it would be useful if these classes were ported to Spring Aspects.
Please see the following location in Spring Roo code for the templates to use:
https://fisheye.springsource.org/browse/spring-roo/trunk/addon-test/src/main/resources/org/springframework/roo/addon/test/AbstractMethodMockingControl.aj-template
https://fisheye.springsource.org/browse/spring-roo/trunk/addon-test/src/main/resources/org/springframework/roo/addon/test/JUnitStaticEntityMockingControl.aj-template
https://fisheye.springsource.org/browse/spring-roo/trunk/addon-test/src/main/resources/org/springframework/roo/addon/test/MockStaticEntityMethods.java-template
Please see the following Jira issues for background on this feature and key considerations:
https://jira.springsource.org/browse/ROO-92
https://jira.springsource.org/browse/ROO-202
https://jira.springsource.org/browse/ROO-272
Once this functionality has been added to Spring Framework, I will modify the Roo usage accordingly (as is being tracked in ROO-314).
Issue Links:
- ROO-314 Use Spring Framework-provided static mock integration test services ("is depended on by")