Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)in: testIssues in the test moduletype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions