spring-projects/spring-test-htmlunit — pull request #42 by KyleRogers (2014-11-01 20:41:54+00:00)
Title: Implemented builder for adapted HtmlUnitDriver

fixes #40 - Implemented a builder for HtmlUnitDriver subclass (internal) that uses MockMvcWebConnection. Implemented builder method to allow direct definition of MockMvcWebConnection to use.

The context path can be defined with:

```
String contextPath = .....
MockMvc mockMvc = ....
MockMvcWebConnection con = new MockMvcWebConnection(mockMvc, contextPath);

HtmlUnitDriver driver = MockMvcHtmlUnitDriverBuilder.via(con).build();
```