spring-framework / org.springframework.test.web.servlet.htmlunit / MockMvcWebConnectionBuilderSupport / contextPath

contextPath

open fun contextPath(contextPath: String): T

Set the context path to use.

If the supplied value is null or empty, the first path segment of the request URL is assumed to be the context path.

Default is "".

Parameters

contextPath - the context path to use

Return
this builder for further customization