Document HtmlUnit & WebDriver deps in reference manual

This commit improves the documentation in the reference manual for the
HtmlUnit & Selenium WebDriver integration in the Spring MVC Test
framework by mentioning the group and artifact IDs required for this
functionality.

Issue: SPR-13299
master
Sam Brannen 9 years ago
parent 9b1178cf71
commit af905aaaea
  1. 7
      src/asciidoc/testing.adoc

@ -4382,6 +4382,10 @@ want to use the raw HtmlUnit libraries.
[[spring-mvc-test-server-htmlunit-mah-setup]] [[spring-mvc-test-server-htmlunit-mah-setup]]
====== MockMvc and HtmlUnit Setup ====== MockMvc and HtmlUnit Setup
First, make sure that you have included a test dependency on `net.sourceforge.htmlunit:htmlunit`.
In order to use HtmlUnit with Apache HttpComponents 4.5+, you will need to use HtmlUnit
2.18 or higher.
We can easily create an HtmlUnit `WebClient` that integrates with `MockMvc` using the We can easily create an HtmlUnit `WebClient` that integrates with `MockMvc` using the
`MockMvcWebClientBuilder` as follows. `MockMvcWebClientBuilder` as follows.
@ -4642,6 +4646,9 @@ following sections to make this pattern much easier to implement.
[[spring-mvc-test-server-htmlunit-webdriver-setup]] [[spring-mvc-test-server-htmlunit-webdriver-setup]]
====== MockMvc and WebDriver Setup ====== MockMvc and WebDriver Setup
To use Selenium WebDriver with the Spring MVC Test framework, make sure that your project
includes a test dependency on `org.seleniumhq.selenium:selenium-htmlunit-driver`.
We can easily create a Selenium `WebDriver` that integrates with `MockMvc` using the We can easily create a Selenium `WebDriver` that integrates with `MockMvc` using the
`MockMvcHtmlUnitDriverBuilder` as follows. `MockMvcHtmlUnitDriverBuilder` as follows.

Loading…
Cancel
Save