Testing is a very important part of the software creation process. Without automated tests, it’s very easy for bugs to creep into software.
In fact, some go as far as to say that you should write tests before you write the code. This is called TDD (test-driven development).
There are multiple test frameworks and tools to help you test your code. This book will cover some of these tools, JUnit and Spock.
Types of Tests
Unit test: Test conducted on a single API call or some isolated code or component
Integration test: Test of a larger system that ...