Skip to content

Update spring-test to Mock TestContext in Tests #15579

Closed
@jzheaux

Description

@jzheaux

A recent update in Spring Framework causes classes that use @Mock to mock TestContext to fail. Updating tests to mock TestContext with Mockito.mock allow the TestContext used by MockitoTestExecutionListener to operate correctly before each test executes.

Metadata

Metadata

Assignees

Labels

in: testAn issue in spring-security-testtype: taskA general task

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions