|
|
|
@ -82,8 +82,8 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
@@ -82,8 +82,8 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testUrlHttpClient() { |
|
|
|
|
assertThat(this.urlClient).as("UrlClient was null").isNotNull(); |
|
|
|
|
Hello hello = this.urlClient.getHello(); |
|
|
|
|
assertThat(urlClient).as("UrlClient was null").isNotNull(); |
|
|
|
|
Hello hello = urlClient.getHello(); |
|
|
|
|
assertThat(hello).as("hello was null").isNotNull(); |
|
|
|
|
assertThat(hello).as("first hello didn't match") |
|
|
|
|
.isEqualTo(new Hello("hello world 1")); |
|
|
|
@ -91,7 +91,7 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
@@ -91,7 +91,7 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testBeanUrl() { |
|
|
|
|
Hello hello = this.beanClient.getHello(); |
|
|
|
|
Hello hello = beanClient.getHello(); |
|
|
|
|
assertThat(hello).as("hello was null").isNotNull(); |
|
|
|
|
assertThat(hello).as("first hello didn't match") |
|
|
|
|
.isEqualTo(new Hello("hello world 1")); |
|
|
|
@ -99,7 +99,7 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
@@ -99,7 +99,7 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testBeanUrlNoProtocol() { |
|
|
|
|
Hello hello = this.beanClientNoProtocol.getHello(); |
|
|
|
|
Hello hello = beanClientNoProtocol.getHello(); |
|
|
|
|
assertThat(hello).as("hello was null").isNotNull(); |
|
|
|
|
assertThat(hello).as("first hello didn't match") |
|
|
|
|
.isEqualTo(new Hello("hello world 1")); |
|
|
|
@ -183,16 +183,16 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
@@ -183,16 +183,16 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
|
|
|
|
|
|
|
|
|
|
private String message; |
|
|
|
|
|
|
|
|
|
public Hello() { |
|
|
|
|
Hello() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Hello(String message) { |
|
|
|
|
Hello(String message) { |
|
|
|
|
this.message = message; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getMessage() { |
|
|
|
|
return this.message; |
|
|
|
|
return message; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setMessage(String message) { |
|
|
|
@ -208,12 +208,12 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
@@ -208,12 +208,12 @@ class FeignHttpClientUrlTestsWithRetryableLoadBalancer {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
Hello that = (Hello) o; |
|
|
|
|
return Objects.equals(this.message, that.message); |
|
|
|
|
return Objects.equals(message, that.message); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
return Objects.hash(this.message); |
|
|
|
|
return Objects.hash(message); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|