Skip to content

Commit

Permalink
Merge pull request #2 from joeyvmason/spring-support-name-refactor
Browse files Browse the repository at this point in the history
Renamed SpringLambdacontainerHandler to SpringLambdaContainerHandler
  • Loading branch information
sapessi authored Dec 21, 2016
2 parents c044ed7 + 45e3dca commit f087f8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @param <RequestType> The incoming event type
* @param <ResponseType> The expected return type
*/
public class SpringLambdacontainerHandler<RequestType, ResponseType> extends LambdaContainerHandler<RequestType, ResponseType, AwsProxyHttpServletRequest, AwsHttpServletResponse> {
public class SpringLambdaContainerHandler<RequestType, ResponseType> extends LambdaContainerHandler<RequestType, ResponseType, AwsProxyHttpServletRequest, AwsHttpServletResponse> {
private LambdaSpringApplicationInitializer initializer;

// State vars
Expand All @@ -44,10 +44,10 @@ public class SpringLambdacontainerHandler<RequestType, ResponseType> extends Lam
* @return An initialized instance of the `SpringLambdaContainerHandler`
* @throws ContainerInitializationException
*/
public static SpringLambdacontainerHandler<AwsProxyRequest, AwsProxyResponse> getAwsProxyHandler(Class... config)
public static SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> getAwsProxyHandler(Class... config)
throws ContainerInitializationException {
SpringLambdacontainerHandler<AwsProxyRequest, AwsProxyResponse> handler =
new SpringLambdacontainerHandler<>(
SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> handler =
new SpringLambdaContainerHandler<>(
new AwsProxyHttpServletRequestReader(),
new AwsProxyHttpServletResponseWriter(),
new AwsProxySecurityContextWriter(),
Expand All @@ -68,7 +68,7 @@ public static SpringLambdacontainerHandler<AwsProxyRequest, AwsProxyResponse> ge
* @param exceptionHandler An implementation of `ExceptionHandler`
* @throws ContainerInitializationException
*/
public SpringLambdacontainerHandler(RequestReader<RequestType, AwsProxyHttpServletRequest> requestReader,
public SpringLambdaContainerHandler(RequestReader<RequestType, AwsProxyHttpServletRequest> requestReader,
ResponseWriter<AwsHttpServletResponse, ResponseType> responseWriter,
SecurityContextWriter<RequestType> securityContextWriter,
ExceptionHandler<ResponseType> exceptionHandler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public class SpringAwsProxyTest {


private static ObjectMapper objectMapper = new ObjectMapper();
private static SpringLambdacontainerHandler<AwsProxyRequest, AwsProxyResponse> handler = null;
private static SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> 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();
Expand Down

0 comments on commit f087f8f

Please sign in to comment.