Skip to content

Commit e02cddd

Browse files
committed
Delete obsolete documentation for JNDI mock support
1 parent 932ce04 commit e02cddd

File tree

1 file changed

+0
-15
lines changed
  • framework-docs/modules/ROOT/pages/testing

1 file changed

+0
-15
lines changed

framework-docs/modules/ROOT/pages/testing/unit.adoc

-15
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ are described in this chapter.
2626
Spring includes a number of packages dedicated to mocking:
2727

2828
* xref:testing/unit.adoc#mock-objects-env[Environment]
29-
* xref:testing/unit.adoc#mock-objects-jndi[JNDI]
3029
* xref:testing/unit.adoc#mock-objects-servlet[Servlet API]
3130
* xref:testing/unit.adoc#mock-objects-web-reactive[Spring Web Reactive]
3231

@@ -42,20 +41,6 @@ and xref:core/beans/environment.adoc#beans-property-source-abstraction[`Property
4241
out-of-container tests for code that depends on environment-specific properties.
4342

4443

45-
[[mock-objects-jndi]]
46-
=== JNDI
47-
48-
The `org.springframework.mock.jndi` package contains a partial implementation of the JNDI
49-
SPI, which you can use to set up a simple JNDI environment for test suites or stand-alone
50-
applications. If, for example, JDBC `DataSource` instances get bound to the same JNDI
51-
names in test code as they do in a Jakarta EE container, you can reuse both application code
52-
and configuration in testing scenarios without modification.
53-
54-
WARNING: The mock JNDI support in the `org.springframework.mock.jndi` package is
55-
officially deprecated as of Spring Framework 5.2 in favor of complete solutions from third
56-
parties such as https://github.com/h-thurow/Simple-JNDI[Simple-JNDI].
57-
58-
5944
[[mock-objects-servlet]]
6045
=== Servlet API
6146

0 commit comments

Comments
 (0)