Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 907 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 907 Bytes

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*