While there exist very nice scnerio tests performing black box testing on the Dependometer application, this page describes the basics of unit testing with JUnit in the Dependometer projects.
Conventions
- test code lies under src/test/java
- JUnit tests should end with Test.java
- tests are automatically executed within the maven build process, e.g. runnnig mvn install, mvn test, etc.
- the build should fail if a single unit test fails (The Toyota Way, Principle 5)