I have a Lambda written in Java with this handler signature:
public class MessageListenerHandler implements RequestHandler<SQSEvent, Map<String, Object>> {
public Map<String, Object> handleRequest(SQSEvent event, Context context) {
// Implementation here
}
}
Normally this Lambda is triggered by an SQS message sent to a queue. I want to be able to invoke this Lambda from a standalone java client e.g. JUnit for test purposes. Is it just a matter of creating an SQS event manually and somehow invoking the Lambda? Thanks in advance