• Improves the design and modularity of the code base • Helps to increase confidence in not breaking existing app functionalities, while refactoring or adding new features to the app
and independent piece of code such as a single Class, Interface or a Method • Runs on your machine’s local Java Virtual Machine (JVM) • Located in ‘module-name/src/test/java’
being tested • Begin by writing a very small test for code that does not exists yet. Run the test, and naturally, it fails. Now write just enough code to make the test pass. No more.