use of com.amazonaws.services.lambda.runtime.CognitoIdentity in project aws-java-serverless by hermanlintvelt.
the class RoadmapsHandlerTest method setUp.
@BeforeEach
public void setUp() {
subject = new RoadmapsHandler();
testContext = new Context() {
@Override
public String getAwsRequestId() {
return null;
}
@Override
public String getLogGroupName() {
return null;
}
@Override
public String getLogStreamName() {
return null;
}
// implement all methods of this interface and setup your test context.
// For instance, the function name:
@Override
public String getFunctionName() {
return "ExampleAwsLambda";
}
@Override
public String getFunctionVersion() {
return null;
}
@Override
public String getInvokedFunctionArn() {
return null;
}
@Override
public CognitoIdentity getIdentity() {
return null;
}
@Override
public ClientContext getClientContext() {
return null;
}
@Override
public int getRemainingTimeInMillis() {
return 0;
}
@Override
public int getMemoryLimitInMB() {
return 0;
}
@Override
public LambdaLogger getLogger() {
return null;
}
};
}
use of com.amazonaws.services.lambda.runtime.CognitoIdentity in project aws-java-serverless by hermanlintvelt.
the class HandlerTest method setUp.
@BeforeEach
public void setUp() {
subject = new Handler();
testContext = new Context() {
@Override
public String getAwsRequestId() {
return null;
}
@Override
public String getLogGroupName() {
return null;
}
@Override
public String getLogStreamName() {
return null;
}
// implement all methods of this interface and setup your test context.
// For instance, the function name:
@Override
public String getFunctionName() {
return "ExampleAwsLambda";
}
@Override
public String getFunctionVersion() {
return null;
}
@Override
public String getInvokedFunctionArn() {
return null;
}
@Override
public CognitoIdentity getIdentity() {
return null;
}
@Override
public ClientContext getClientContext() {
return null;
}
@Override
public int getRemainingTimeInMillis() {
return 0;
}
@Override
public int getMemoryLimitInMB() {
return 0;
}
@Override
public LambdaLogger getLogger() {
return null;
}
};
}
use of com.amazonaws.services.lambda.runtime.CognitoIdentity in project amazon-neptune-tools by awslabs.
the class RunNeptuneExportSvc method run.
@Override
public void run() {
InputStream input = new ByteArrayInputStream(json.getBytes(StandardCharsets.UTF_8));
try {
new NeptuneExportLambda(rootPath, cleanRootPath, maxFileDescriptorCount).handleRequest(input, System.out, new Context() {
@Override
public String getAwsRequestId() {
throw new NotImplementedException();
}
@Override
public String getLogGroupName() {
throw new NotImplementedException();
}
@Override
public String getLogStreamName() {
throw new NotImplementedException();
}
@Override
public String getFunctionName() {
throw new NotImplementedException();
}
@Override
public String getFunctionVersion() {
throw new NotImplementedException();
}
@Override
public String getInvokedFunctionArn() {
throw new NotImplementedException();
}
@Override
public CognitoIdentity getIdentity() {
throw new NotImplementedException();
}
@Override
public ClientContext getClientContext() {
throw new NotImplementedException();
}
@Override
public int getRemainingTimeInMillis() {
throw new NotImplementedException();
}
@Override
public int getMemoryLimitInMB() {
throw new NotImplementedException();
}
@Override
public LambdaLogger getLogger() {
return new LambdaLogger() {
@Override
public void log(String s) {
System.out.println(s);
}
@Override
public void log(byte[] bytes) {
throw new NotImplementedException();
}
};
}
});
} catch (Exception e) {
e.printStackTrace();
System.err.println("An error occurred while exporting from Neptune: " + e.getMessage());
System.exit(-1);
}
System.exit(0);
}
use of com.amazonaws.services.lambda.runtime.CognitoIdentity in project aws-java-serverless by hermanlintvelt.
the class CreateRoadmapsHandlerTest method setUp.
@BeforeEach
public void setUp() {
subject = new CreateRoadmapsHandler();
testContext = new Context() {
@Override
public String getAwsRequestId() {
return null;
}
@Override
public String getLogGroupName() {
return null;
}
@Override
public String getLogStreamName() {
return null;
}
// implement all methods of this interface and setup your test context.
// For instance, the function name:
@Override
public String getFunctionName() {
return "ExampleAwsLambda";
}
@Override
public String getFunctionVersion() {
return null;
}
@Override
public String getInvokedFunctionArn() {
return null;
}
@Override
public CognitoIdentity getIdentity() {
return null;
}
@Override
public ClientContext getClientContext() {
return null;
}
@Override
public int getRemainingTimeInMillis() {
return 0;
}
@Override
public int getMemoryLimitInMB() {
return 0;
}
@Override
public LambdaLogger getLogger() {
return null;
}
};
}
Aggregations