Polishing
This commit is contained in:
parent
7a8c8c062e
commit
657dc961f4
|
@ -74,7 +74,7 @@ configuration in testing scenarios without modification.
|
||||||
[[mock-objects-servlet]]
|
[[mock-objects-servlet]]
|
||||||
==== Servlet API
|
==== Servlet API
|
||||||
The `org.springframework.mock.web` package contains a comprehensive set of Servlet API
|
The `org.springframework.mock.web` package contains a comprehensive set of Servlet API
|
||||||
mock objects, which are useful for testing web contexts, controllers, and filters. These
|
mock objects that are useful for testing web contexts, controllers, and filters. These
|
||||||
mock objects are targeted at usage with Spring's Web MVC framework and are generally more
|
mock objects are targeted at usage with Spring's Web MVC framework and are generally more
|
||||||
convenient to use than dynamic mock objects such as http://www.easymock.org[EasyMock] or
|
convenient to use than dynamic mock objects such as http://www.easymock.org[EasyMock] or
|
||||||
alternative Servlet API mock objects such as http://www.mockobjects.com[MockObjects].
|
alternative Servlet API mock objects such as http://www.mockobjects.com[MockObjects].
|
||||||
|
@ -86,19 +86,19 @@ on the Servlet 4.0 API.
|
||||||
====
|
====
|
||||||
|
|
||||||
The Spring MVC Test framework builds on the mock Servlet API objects to provide an
|
The Spring MVC Test framework builds on the mock Servlet API objects to provide an
|
||||||
integration test framework for Spring MVC. See
|
integration testing framework for Spring MVC. See
|
||||||
<<spring-mvc-test-framework,_Spring MVC Test_>>.
|
<<spring-mvc-test-framework,_Spring MVC Test_>>.
|
||||||
|
|
||||||
|
|
||||||
[[mock-objects-web-reactive]]
|
[[mock-objects-web-reactive]]
|
||||||
==== Spring Web Reactive
|
==== Spring Web Reactive
|
||||||
The `org.springframework.mock.http.server.reactive` package contains mock request and
|
The `org.springframework.mock.http.server.reactive` package contains mock request and
|
||||||
response objects for testing Spring WebFlux applications. There is also a
|
response objects for testing _Spring WebFlux_ applications. There is also a
|
||||||
`MockWebServerExchange` in `org.springframework.mock.web.server` package that uses
|
`MockWebServerExchange` in the `org.springframework.mock.web.server` package that uses
|
||||||
those mock request and response.
|
those mock request and response objects.
|
||||||
|
|
||||||
`WebTestClient` builds on these mock objects and to provide integration testing
|
`WebTestClient` builds on these mock objects to provide integration testing support for
|
||||||
of WebFlux server endpoints without running an HTTP server.
|
WebFlux server endpoints without running an HTTP server.
|
||||||
|
|
||||||
|
|
||||||
[[unit-testing-support-classes]]
|
[[unit-testing-support-classes]]
|
||||||
|
|
Loading…
Reference in New Issue