Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues
Collaborator

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.
      Introduce a reset() method in AnnotationDrivenStaticEntityMockingControl.

Affects: 4.0 GA

Activity

spring-projects-issues

spring-projects-issues commented on Feb 5, 2014

@spring-projects-issues
CollaboratorAuthor

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.

added this to the 4.0.2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sbrannen@spring-projects-issues

      Issue actions

        Introduce verify() and reset() methods in AnnotationDrivenStaticEntityMockingControl [SPR-11395] · Issue #16022 · spring-projects/spring-framework