Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
a7d425de
Commit
a7d425de
authored
Nov 17, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to feign 8.12.1
fixes gh-623
parent
06a4e099
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
pom.xml
pom.xml
+1
-1
SpringDecoderTests.java
...ringframework/cloud/netflix/feign/SpringDecoderTests.java
+19
-6
No files found.
pom.xml
View file @
a7d425de
...
...
@@ -27,7 +27,7 @@
<main.basedir>
${basedir}
</main.basedir>
<archaius.version>
0.6.5
</archaius.version>
<eureka.version>
1.3.4
</eureka.version>
<feign.version>
8.1
1.0
</feign.version>
<feign.version>
8.1
2.1
</feign.version>
<hystrix.version>
1.4.20
</hystrix.version>
<ribbon.version>
2.1.0
</ribbon.version>
<servo.version>
0.10.0
</servo.version>
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/SpringDecoderTests.java
View file @
a7d425de
...
...
@@ -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
<
Hello
>
getHelloResponse
();
ResponseEntity
<
Hello
>
getHelloResponse
();
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/hellovoid"
)
public
ResponseEntity
<
Void
>
getHelloVoid
();
ResponseEntity
<
Void
>
getHelloVoid
();
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/hello"
)
public
Hello
getHello
();
Hello
getHello
();
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/hellos"
)
public
List
<
Hello
>
getHellos
();
List
<
Hello
>
getHellos
();
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/hellostrings"
)
public
List
<
String
>
getHelloStrings
();
List
<
String
>
getHelloStrings
();
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/hellonotfound"
)
ResponseEntity
<
String
>
getNotFound
();
}
@Configuration
...
...
@@ -175,6 +183,11 @@ public class SpringDecoderTests extends FeignClientFactoryBean {
return
hellos
;
}
@Override
public
ResponseEntity
<
String
>
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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment