diff --git a/aws-serverless-java-container-springboot2/src/test/java/com/amazonaws/serverless/proxy/spring/ServletAppTest.java b/aws-serverless-java-container-springboot2/src/test/java/com/amazonaws/serverless/proxy/spring/ServletAppTest.java index 7c80dc86b..de2228434 100644 --- a/aws-serverless-java-container-springboot2/src/test/java/com/amazonaws/serverless/proxy/spring/ServletAppTest.java +++ b/aws-serverless-java-container-springboot2/src/test/java/com/amazonaws/serverless/proxy/spring/ServletAppTest.java @@ -23,7 +23,8 @@ import java.util.Collection; import java.util.stream.Collectors; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; @RunWith(Parameterized.class) public class ServletAppTest { @@ -191,18 +192,4 @@ public void springExceptionMapping_throw404Ex_expectMappedTo404() { assertNotNull(resp); assertEquals(404, resp.getStatusCode()); } - - @Test - public void echoMessage_populatesSingleValueHeadersForHttpApiV2() { - AwsProxyRequestBuilder req = new AwsProxyRequestBuilder("/message", "POST") - .header(HttpHeaders.CONTENT_TYPE, "application/json;v=1") - .header(HttpHeaders.ACCEPT, "application/json;v=1") - .body(new MessageData("test message")); - AwsProxyResponse resp = handler.handleRequest(req, lambdaContext); - if ("HTTP_API".equals(type)) { - assertNotNull(resp.getHeaders()); - } else { - assertNull(resp.getHeaders()); - } - } }