Closed
Description
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 inspring-test
. - Retain the repackaged copies in
org.springframework.tests.mock.jndi
in thesrc/test/java
source tree ofspring-context
for internal testing purposes.