Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Upgrade to Spring REST Docs 2.0.4 (#357)
Browse files Browse the repository at this point in the history
* Upgrade to Spring REST Docs 2.0.4

* Add new test JAR

* test fix
  • Loading branch information
fbenz authored and jmisur committed Oct 7, 2019
1 parent eedb396 commit aca9fce
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- mvn install:install-file -Dfile=lib/spring-restdocs-core-2.0.3.RELEASE-test.jar
-DgroupId=org.springframework.restdocs -DartifactId=spring-restdocs-core -Dversion=2.0.3.RELEASE
- mvn install:install-file -Dfile=lib/spring-restdocs-core-2.0.4.RELEASE-test.jar
-DgroupId=org.springframework.restdocs -DartifactId=spring-restdocs-core -Dversion=2.0.4.RELEASE
-Dpackaging=jar -Dclassifier=test
script:
- mvn install -B -V
Expand Down
Binary file removed lib/spring-restdocs-core-2.0.3.RELEASE-test.jar
Binary file not shown.
Binary file added lib/spring-restdocs-core-2.0.4.RELEASE-test.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
<spring-restdocs.version>2.0.3.RELEASE</spring-restdocs.version>
<spring-restdocs.version>2.0.4.RELEASE</spring-restdocs.version>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion samples/java-webflux/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>capital.scalable.restdocs.example.Application</start-class>
<spring-restdocs.version>2.0.3.RELEASE</spring-restdocs.version>
<spring-restdocs.version>2.0.4.RELEASE</spring-restdocs.version>
<spring-auto-restdocs.version>2.0.7-SNAPSHOT</spring-auto-restdocs.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion samples/java-webmvc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
ext {
springAutoRestDocsVersion = "2.0.7-SNAPSHOT"
springRestDocsVersion = "2.0.3.RELEASE"
springRestDocsVersion = "2.0.4.RELEASE"
springBootVersion = "2.1.8.RELEASE"
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion samples/java-webmvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>capital.scalable.restdocs.example.Application</start-class>
<spring-restdocs.version>2.0.3.RELEASE</spring-restdocs.version>
<spring-restdocs.version>2.0.4.RELEASE</spring-restdocs.version>
<spring-auto-restdocs.version>2.0.7-SNAPSHOT</spring-auto-restdocs.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion samples/kotlin-webmvc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
ext {
kotlinVersion = "1.3.41"
springAutoRestDocsVersion = "2.0.7-SNAPSHOT"
springRestDocsVersion = "2.0.3.RELEASE"
springRestDocsVersion = "2.0.4.RELEASE"
springBootVersion = "2.1.8.RELEASE"
dokkaVersion = "0.9.18"
}
Expand Down
2 changes: 1 addition & 1 deletion samples/kotlin-webmvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-restdocs.version>2.0.3.RELEASE</spring-restdocs.version>
<spring-restdocs.version>2.0.4.RELEASE</spring-restdocs.version>
<spring-auto-restdocs.version>2.0.7-SNAPSHOT</spring-auto-restdocs.version>
<kotlin.version>1.3.41</kotlin.version>
<dokka.version>0.9.18</dokka.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ public HttpStatus getStatus() {
return HttpStatus.OK;
}

@Override
public int getStatusCode() {
return getStatus().value();
}

@Override
public HttpHeaders getHeaders() {
return httpHeaders;
Expand Down

0 comments on commit aca9fce

Please sign in to comment.