-
Couldn't load subscription status.
- Fork 38.8k
Closed
Labels
Milestone
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.jndipackage inspring-test. - Retain the repackaged copies in
org.springframework.tests.mock.jndiin thesrc/test/javasource tree ofspring-contextfor internal testing purposes.