File tree 1 file changed +0
-15
lines changed
framework-docs/modules/ROOT/pages/testing
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ are described in this chapter.
26
26
Spring includes a number of packages dedicated to mocking:
27
27
28
28
* xref:testing/unit.adoc#mock-objects-env[Environment]
29
- * xref:testing/unit.adoc#mock-objects-jndi[JNDI]
30
29
* xref:testing/unit.adoc#mock-objects-servlet[Servlet API]
31
30
* xref:testing/unit.adoc#mock-objects-web-reactive[Spring Web Reactive]
32
31
@@ -42,20 +41,6 @@ and xref:core/beans/environment.adoc#beans-property-source-abstraction[`Property
42
41
out-of-container tests for code that depends on environment-specific properties.
43
42
44
43
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
-
59
44
[[mock-objects-servlet]]
60
45
=== Servlet API
61
46
You can’t perform that action at this time.
0 commit comments