Skip to content

Deprecate mock JNDI support in the spring-test module #22779

Closed
@sbrannen

Description

@sbrannen

Overview

The mock JNDI support in the org.springframework.mock.jndi package is 15 years old, only partially implemented (see #22732), and typically not very useful for a modern Spring application where beans such as a DataSource should ideally be registered as stand-alone beans in the ApplicationContext and swapped out for integration tests (e.g., via bean definition profiles).

We should therefore deprecate this support and recommend that users use something better suited such as Simple-JNDI.

Related Issues

Deliverables

  • Deprecate all types in the org.springframework.mock.jndi package in spring-test.
  • Retain the repackaged copies in org.springframework.tests.mock.jndi in the src/test/java source tree of spring-context for internal testing purposes.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test moduletype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions