Course Overview
A 3-day comprehensive hands-on class on Automated Testing in Java, including process, best practices and techniques.
Course Prerequisites
Students should have a good understanding of the Java Platform SE and EE.
Outline
- Recognising the value of Automated tests
- identifying different ways of achieving results
- Test/Behaviour-Driven Development (TDD/BDD)
- The theory and practice behind "test-green-refactor"
- What not to use TDD (when not to test-first)
- Writing unit tests (TDD)
- Contrast with writing specifications (BDD)
- JUnit 5.x (all aspects)
- The Hamcrest API (bundled with JUnit plus more)
- Value of Code coverage
- Test in isolation using Mocking (using Mockito)
- Protect yourself from mock and stub-to-death
- Using Testcontainers for integration tests
- Best practices, pitfalls etc
- Continuous integration (CI)