- The importance of writing automated tests in an application
- Knowing JUnit, the main library for automated tests in Java
- Writing automated tests with JUnit
- Using the TDD process when writing automated tests
- Key JUnit annotations and features
The implementation with Tdd is based of circle process, see below:
Steps: 1 -> Implement your logic business test, 2 -> Run tests, 3 -> Refactoring and Run TestThe idea is to build the tests first, as we've always seen and we do the opposite, for example, we create the rules to be tested, in this case, we create the tests and then we create the implementation, as if it were test-oriented. In a way, you realize how different this methodology is and yes, it is possible to see the test to be carried out with different eyes.
When implementing your tests, it is also important to use design patterns so that your tests are future-proof and maintain code quality.