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
87de937f
Commit
87de937f
authored
Feb 22, 2018
by
Ryan Baxter
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1.4.x'
parents
1080a1dc
c84d20cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
FeignRibbonClientRetryTests.java
...oud/netflix/feign/ribbon/FeignRibbonClientRetryTests.java
+0
-1
FeignRibbonHttpClientConfigurationTests.java
...feign/ribbon/FeignRibbonHttpClientConfigurationTests.java
+5
-4
FeignRibbonOkHttpClientConfigurationTests.java
...ign/ribbon/FeignRibbonOkHttpClientConfigurationTests.java
+5
-4
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonClientRetryTests.java
View file @
87de937f
...
...
@@ -105,7 +105,6 @@ public class FeignRibbonClientRetryTests {
}
@Test
@Ignore
//FIXME: broken test
public
void
testRetries
()
{
int
retryMe
=
this
.
testClient
.
retryMe
();
assertEquals
(
"retryCount didn't match"
,
retryMe
,
1
);
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonHttpClientConfigurationTests.java
View file @
87de937f
...
...
@@ -31,9 +31,9 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.util.ReflectionUtils
;
import
org.springframework.web.bind.annotation.RestController
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNull
;
...
...
@@ -42,8 +42,10 @@ import static org.junit.Assert.assertNull;
* @author Ryan Baxter
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
FeignRibbonHttpClientConfigurationTests
.
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
@SpringBootTest
(
classes
=
FeignRibbonHttpClientConfigurationTests
.
FeignRibbonHttpClientConfigurationTestsApplication
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
properties
=
{
"debug=true"
,
"feign.httpclient.disableSslValidation=true"
})
@DirtiesContext
public
class
FeignRibbonHttpClientConfigurationTests
{
@Autowired
...
...
@@ -77,8 +79,7 @@ public class FeignRibbonHttpClientConfigurationTests {
@Configuration
@EnableAutoConfiguration
@RestController
public
static
class
Application
{
static
class
FeignRibbonHttpClientConfigurationTestsApplication
{
public
static
void
main
(
String
[]
args
)
{
new
SpringApplicationBuilder
(
FeignRibbonClientRetryTests
.
Application
.
class
)
.
run
(
args
);
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonOkHttpClientConfigurationTests.java
View file @
87de937f
...
...
@@ -29,17 +29,19 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.cloud.commons.httpclient.OkHttpClientFactory
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.util.ReflectionUtils
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author Ryan Baxter
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
FeignRibbonOkHttpClientConfigurationTests
.
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
@SpringBootTest
(
classes
=
FeignRibbonOkHttpClientConfigurationTests
.
FeignRibbonOkHttpClientConfigurationTestsApplication
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
properties
=
{
"debug=true"
,
"feign.httpclient.disableSslValidation=true"
,
"feign.okhttp.enabled=true"
,
"feign.httpclient.enabled=false"
})
@DirtiesContext
public
class
FeignRibbonOkHttpClientConfigurationTests
{
@Autowired
...
...
@@ -60,8 +62,7 @@ public class FeignRibbonOkHttpClientConfigurationTests {
@Configuration
@EnableAutoConfiguration
@RestController
public
static
class
Application
{
static
class
FeignRibbonOkHttpClientConfigurationTestsApplication
{
public
static
void
main
(
String
[]
args
)
{
new
SpringApplicationBuilder
(
FeignRibbonClientRetryTests
.
Application
.
class
)
.
run
(
args
);
...
...
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