Files
spring-restdocs/spring-restdocs-webtestclient/build.gradle
Andy Wilkinson a60b87990b Tolerate changes to request body reading in Framework 5.1
Previously, MockHttpServletRequest allowed its body to be ready
multiple times using its InputStream. As of recent Spring Framework
5.1 snapshots, this is no longer the case.

This commit moves to directly accessing the request's content as a
byte array using getContentAsByteArray() which was introduced in
Framework 5.0.

Closes gh-515
2018-06-17 12:55:56 +01:00

24 lines
712 B
Groovy

description = 'Spring REST Docs WebFlux'
dependencies {
compile 'org.springframework:spring-test'
compile 'org.springframework:spring-webflux'
compile project(':spring-restdocs-core')
testCompile 'org.mockito:mockito-core'
testCompile 'org.hamcrest:hamcrest-library'
testCompile project(path: ':spring-restdocs-core', configuration: 'testArtifacts')
testRuntime 'org.springframework:spring-context'
testRuntime 'org.synchronoss.cloud:nio-multipart-parser'
}
test {
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.restdocs.*"
}
matrixTest {
springFramework {
group = 'org.springframework'
versions = ['5.1.0.BUILD-SNAPSHOT']
}
}