Unit testing in a nutshell
The process of testing an application contains several layers of testing. One of these layers is the unit testing layer.
Mainly, an application is built by small functional parts called units (for example, a regular Java method can be considered a unit). Testing the functionality and correctness of these units under specific inputs/conditions/constraints is called unit testing.
These unit tests are written by developers using the source code and the test plan. Ideally, every developer should be capable of writing unit tests that test/validate their code. Unit tests should be meaningful and provide accepted code coverage.
If the unit tests fails, then the developer is responsible for fixing the issues and executing the unit tests again. The following diagram depicts this statement:
Unit testing uses unit test cases. A unit test case is a pair of input data and expected output meant to...