Skip to content

Reset spies on separate test classes using same context #25366

@cdalexndr

Description

@cdalexndr

Using @TestExecutionListeners(MockitoTestExecutionListener.class)

Two separate test classes should be independent, even when reusing the same cached app context.
Stubbing inside a test class should not remain in the other. Same for invocation counts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions