diff --git a/aws-serverless-java-container-spring/src/main/java/com/amazonaws/serverless/proxy/spring/SpringLambdacontainerHandler.java b/aws-serverless-java-container-spring/src/main/java/com/amazonaws/serverless/proxy/spring/SpringLambdacontainerHandler.java index 2b6f2c9bf..44dbcd278 100644 --- a/aws-serverless-java-container-spring/src/main/java/com/amazonaws/serverless/proxy/spring/SpringLambdacontainerHandler.java +++ b/aws-serverless-java-container-spring/src/main/java/com/amazonaws/serverless/proxy/spring/SpringLambdacontainerHandler.java @@ -32,7 +32,7 @@ * @param The incoming event type * @param The expected return type */ -public class SpringLambdacontainerHandler extends LambdaContainerHandler { +public class SpringLambdaContainerHandler extends LambdaContainerHandler { private LambdaSpringApplicationInitializer initializer; // State vars @@ -44,10 +44,10 @@ public class SpringLambdacontainerHandler extends Lam * @return An initialized instance of the `SpringLambdaContainerHandler` * @throws ContainerInitializationException */ - public static SpringLambdacontainerHandler getAwsProxyHandler(Class... config) + public static SpringLambdaContainerHandler getAwsProxyHandler(Class... config) throws ContainerInitializationException { - SpringLambdacontainerHandler handler = - new SpringLambdacontainerHandler<>( + SpringLambdaContainerHandler handler = + new SpringLambdaContainerHandler<>( new AwsProxyHttpServletRequestReader(), new AwsProxyHttpServletResponseWriter(), new AwsProxySecurityContextWriter(), @@ -68,7 +68,7 @@ public static SpringLambdacontainerHandler ge * @param exceptionHandler An implementation of `ExceptionHandler` * @throws ContainerInitializationException */ - public SpringLambdacontainerHandler(RequestReader requestReader, + public SpringLambdaContainerHandler(RequestReader requestReader, ResponseWriter responseWriter, SecurityContextWriter securityContextWriter, ExceptionHandler exceptionHandler) diff --git a/aws-serverless-java-container-spring/src/test/java/com/amazonaws/serverless/proxy/spring/SpringAwsProxyTest.java b/aws-serverless-java-container-spring/src/test/java/com/amazonaws/serverless/proxy/spring/SpringAwsProxyTest.java index 607d31521..aee11abf8 100644 --- a/aws-serverless-java-container-spring/src/test/java/com/amazonaws/serverless/proxy/spring/SpringAwsProxyTest.java +++ b/aws-serverless-java-container-spring/src/test/java/com/amazonaws/serverless/proxy/spring/SpringAwsProxyTest.java @@ -29,14 +29,14 @@ public class SpringAwsProxyTest { private static ObjectMapper objectMapper = new ObjectMapper(); - private static SpringLambdacontainerHandler handler = null; + private static SpringLambdaContainerHandler handler = null; private static Context lambdaContext = new MockLambdaContext(); @BeforeClass public static void init() { try { - handler = SpringLambdacontainerHandler.getAwsProxyHandler(EchoSpringAppConfig.class); + handler = SpringLambdaContainerHandler.getAwsProxyHandler(EchoSpringAppConfig.class); } catch (ContainerInitializationException e) { e.printStackTrace(); fail();