HTTPS SSH

JUnit-Koans

Java Testing Koans to understand how to write unit tests with JUnit.

Dependencies

  • This is a Java 7 project.
  • This is an Apache Maven project.

Additional exercises cover JUnitParams, Hamcrest, catchException and AssertJ.

Assignment

  • Run tests with mvnw test.
  • You should see some test failures and errors (but there are no assertions).
  • Go through the test code starting from Session 1:
    • All assertions are commented and incomplete.
    • Uncomment the assertions and complete them making the tests pass.
    • You can run individual sessions using mvnw test -Dtest=*1*

License

New BSD License, see license.txt in repository.