Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce verify() and reset() methods in AnnotationDrivenStaticEntityMockingControl [SPR-11395] #16022

Closed
2 tasks done
spring-projects-issues opened this issue Feb 5, 2014 · 1 comment

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Feb 5, 2014

Sam Brannen opened SPR-11395 and commented

Status Quo

The AnnotationDrivenStaticEntityMockingControl aspect ensures that all expectations on the mock have been fulfilled automatically when the invocation of the advised method (typically an @Test method) completes successfully (i.e., does not throw an exception). This behavior is normally sufficient; however, there are times when it would be convenient to be able to manually (programmatically) verify the recorded expectations and/or reset the state of the mock.

Deliverables

  1. Introduce a verify() method in AnnotationDrivenStaticEntityMockingControl.
  2. Introduce a reset() method in AnnotationDrivenStaticEntityMockingControl.

Affects: 4.0 GA

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 5, 2014

Sam Brannen commented

Resolved as described in the comments for GitHub commit 624170f:

Introduce verify & reset methods in ADSEMockCtrl

This commit introduces static verify() and reset() methods in
AnnotationDrivenStaticEntityMockingControl for programmatic control
on the mock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants