You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
sbrannen
changed the title
Deprecate mock JNDI support in org.springframework.mock.jndi
Deprecate mock JNDI support in the spring-test module
Apr 10, 2019
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 aDataSource
should ideally be registered as stand-alone beans in theApplicationContext
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
org.springframework.mock.jndi
package inspring-test
.org.springframework.tests.mock.jndi
in thesrc/test/java
source tree ofspring-context
for internal testing purposes.The text was updated successfully, but these errors were encountered: