A sample project for getting started with TDD in Java.
The file _src/test/java/CalculatorTest.java contains one test case and a few in comments. Start by coming up with a few test cases and add them to the lists, then implement them one at a time, test-driving the solution forwards.
Uses Gradle for the build system and JUnit 5 as the test runner.
Run the tests with:
./gradlew test
If you want to rerun passed tests for some reason you may need to run
./gradlew cleanTest
first since Gradle caches the test results.
For another example check out the JUnit 5 Gradle sample from the JUnit project.