Fixing broken tests

This commit is contained in:
Ryan Baxter
2020-07-09 11:13:05 -04:00
parent 4766d95def
commit 9677353c27
3 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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");
}

View File

@@ -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");
}