diff --git a/pom.xml b/pom.xml
index 9b5a7b5d..f21c93d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
${basedir}
0.6.5
1.3.4
- 8.11.0
+ 8.12.1
1.4.20
2.1.0
0.10.0
diff --git a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/SpringDecoderTests.java b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/SpringDecoderTests.java
index b7de5e97..53c852ea 100644
--- a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/SpringDecoderTests.java
+++ b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/SpringDecoderTests.java
@@ -115,6 +115,11 @@ public class SpringDecoderTests extends FeignClientFactoryBean {
assertEquals("header was wrong", "myval", header);
}
+ @Test(expected = RuntimeException.class)
+ public void test404() {
+ testClient().getNotFound();
+ }
+
@Data
@AllArgsConstructor
@NoArgsConstructor
@@ -122,21 +127,24 @@ public class SpringDecoderTests extends FeignClientFactoryBean {
private String message;
}
- protected static interface TestClient {
+ protected interface TestClient {
@RequestMapping(method = RequestMethod.GET, value = "/helloresponse")
- public ResponseEntity getHelloResponse();
+ ResponseEntity getHelloResponse();
@RequestMapping(method = RequestMethod.GET, value = "/hellovoid")
- public ResponseEntity getHelloVoid();
+ ResponseEntity getHelloVoid();
@RequestMapping(method = RequestMethod.GET, value = "/hello")
- public Hello getHello();
+ Hello getHello();
@RequestMapping(method = RequestMethod.GET, value = "/hellos")
- public List getHellos();
+ List getHellos();
@RequestMapping(method = RequestMethod.GET, value = "/hellostrings")
- public List getHelloStrings();
+ List getHelloStrings();
+
+ @RequestMapping(method = RequestMethod.GET, value = "/hellonotfound")
+ ResponseEntity getNotFound();
}
@Configuration
@@ -175,6 +183,11 @@ public class SpringDecoderTests extends FeignClientFactoryBean {
return hellos;
}
+ @Override
+ public ResponseEntity getNotFound() {
+ return ResponseEntity.status(HttpStatus.NOT_FOUND).body((String)null);
+ }
+
public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).properties(
"spring.application.name=springdecodertest",