This is a small sample project that can be used to introduce programmers to unit testing with Java. It has the following stuff:
- A sequence of branches that goes from no-test to junit feature by feature branches to mockito for mocking to test coverage reporting with jacoco
- Many examples of small, focused unit test cases that validate a single feature.
- Several examples of stubbing (using the Apollo StubClient)
The correct way to inspect the branches of this projects is as follows:
- no-test
- junit-basics
- junit-basics-2-before
- junit-basics-3-exceptions
- junit-basics-4-hamcrest
- mockito-basics
- test-coverage