Skip to content

Instantly share code, notes, and snippets.

@danhyun
Created August 30, 2019 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danhyun/ad79f17d440876a4499daf05563f0c5a to your computer and use it in GitHub Desktop.
Save danhyun/ad79f17d440876a4499daf05563f0c5a to your computer and use it in GitHub Desktop.
spring mock mvc rest assured please stop encoding my paths
RestAssuredMockMvc.requestSpecification = MockMvcRequestSpecBuilder()
.setMockHttpServletRequestBuilderInterceptor { b ->
b.with { r -> r.apply { requestURI = pathInfo } }
}.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment