Unit Test your Java Lambda functions

Publié le: 22 janvier 2023
sur la chaîne: James Eastham
3,787
46

Unit testing is a vital part of the software development life cycle. Providing fast feedback to developers to ensure your business logic is working as it should be is essential for a productive workflow.

Building single purpose Lambda functions can require a shift in thinking for developers. Nowhere more so than with testing. As a general rule of thumb, unit test your business logic locally and test everything else in the cloud.

In this video, you will learn how to apply good testing practices and debug locally when building serverless Java applications with AWS Lambda & AWS SAM.

00:00 - Introduction
01:20 - The Function Under Test
02:20 - Data Access
03:30 - Function Constructors
04:50 - Unit Test Project
06:10 - Parameterized Tests
07:00 - Test Event Payloads
08:30 - Capturing Arguments
11:15 - Local Debugging
12:25 - Testing with AWS SAM


Links
Mockito - https://site.mockito.org/
DynamoDB Enhanced Client - https://docs.aws.amazon.com/sdk-for-j...
AWS Lambda Java Tests - https://aws.amazon.com/blogs/opensour...
AWS Lambda Java Tests GitHub - https://github.com/aws/aws-lambda-jav...
Martin Fowler, Unit Testing - https://martinfowler.com/bliki/UnitTe...

Twitter -   / plantpowerjames  
  / james-eastham  


Sur cette page du site, vous pouvez voir la vidéo en ligne Unit Test your Java Lambda functions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur James Eastham 22 janvier 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,787 fois et il a aimé 46 téléspectateurs. Bon visionnage!