Fixing broken tests
This commit is contained in:
@@ -133,7 +133,7 @@ public class SpringDecoderTests extends FeignClientFactoryBean {
|
||||
public void testResponseEntityVoid() {
|
||||
ResponseEntity<Void> response = testClient().getHelloVoid();
|
||||
assertThat(response).as("response was null").isNotNull();
|
||||
List<String> headerVals = response.getHeaders().get("X-test-header");
|
||||
List<String> headerVals = response.getHeaders().get("x-test-header");
|
||||
assertThat(headerVals).as("headerVals was null").isNotNull();
|
||||
assertThat(headerVals.size()).as("headerVals size was wrong").isEqualTo(1);
|
||||
String header = headerVals.get(0);
|
||||
|
||||
@@ -86,7 +86,7 @@ public class FeignHttpClientTests {
|
||||
public void testPatch() {
|
||||
ResponseEntity<Void> response = this.testClient.patchHello(new Hello("foo"));
|
||||
assertThat(response).isNotNull();
|
||||
String header = response.getHeaders().getFirst("X-Hello");
|
||||
String header = response.getHeaders().getFirst("x-hello");
|
||||
assertThat(header).isEqualTo("hello world patch");
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public class FeignOkHttpTests {
|
||||
public void testPatch() {
|
||||
ResponseEntity<Void> response = this.testClient.patchHello(new Hello("foo"));
|
||||
assertThat(response).isNotNull();
|
||||
String header = response.getHeaders().getFirst("X-Hello");
|
||||
String header = response.getHeaders().getFirst("x-hello");
|
||||
assertThat(header).isEqualTo("hello world patch");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user