Skip to content

Commit 3d0ec50

Browse files
committed
Document mock JNDI support deprecation in the Reference Manual
See gh-22779
1 parent 7f58e39 commit 3d0ec50

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/docs/asciidoc/testing.adoc

+6-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@ out-of-container tests for code that depends on environment-specific properties.
7777
[[mock-objects-jndi]]
7878
==== JNDI
7979

80-
The `org.springframework.mock.jndi` package contains an implementation of the JNDI SPI,
81-
which you can use to set up a simple JNDI environment for test suites or stand-alone
80+
The `org.springframework.mock.jndi` package contains a partial implementation of the JNDI
81+
SPI, which you can use to set up a simple JNDI environment for test suites or stand-alone
8282
applications. If, for example, JDBC `DataSource` instances get bound to the same JNDI
8383
names in test code as they do in a Java EE container, you can reuse both application code
8484
and configuration in testing scenarios without modification.
8585

86+
WARNING: The mock JNDI support in the `org.springframework.mock.jndi` package is
87+
officially deprecated as of Spring Framework 5.2 in favor of complete solutions from third
88+
parties such as https://github.com/h-thurow/Simple-JNDI[Simple-JNDI].
89+
8690

8791
[[mock-objects-servlet]]
8892
==== Servlet API

0 commit comments

Comments
 (0)