The principal objective of software testing is to give confidence in the software.— Anonymous.

UNIT TESTING is a type of software testing where individual units or components of the software are tested. The purpose is to validate that each unit of the software code performs as expected.

Unit Testing is done during the development (coding phase) of an application by the developers.

Today I will cover up bellow topics

  1. Importance of software testing, Test Driven Development (TDD) basics, and aspects of test cases
  2. Details of terms related to test cases: unit testing, integration testing, Mocking, Spying, Stubbing
  3. In spring boot apps controller, service, and repository layer unit testing
  4. Tips for writing testable code
  5. Share the codebase and related files

#junit #spring-boot #unit-testing #jpa #mockito

Controller, Service, and Repository Layer Unit Testing using JUnit and Mockito
1.90 GEEK