Unit Testing

TDD approach to Serverless Java Development

TDD (Test-Driven Development) is an essential approach to Serverless Java development that emphasizes writing tests before writing the actual code. Importance of TDD in Serverless Java Development: Let us start with the required Tools to the setup environment: AWS Free Account Lambda functions in Java JUnit5: This is a popular framework for unit testing Java …

TDD approach to Serverless Java Development Read More »

JUnit5 and Mockito

Mocking… Arrange: Mocking makes entire functionality lost. It is training your mock by stubbing all the external dependencies with a given dummy input/expected output; when():thenReturns; throws exceptions. What remains are lines of code in the if/else branches that are executed by the type of input. Action: Calling the class under test’s (CUT) actual method in …

JUnit5 and Mockito Read More »