JDK 8 and Git must be installed in order to run the project locally.
Clone the repository:
git clone https://github.com/kolorobot/unit-testing-demo.git unit-testing-demo
Navigate to newly created folder and run:
gradlew test
Examples in this project are partly coming from blog posts at http://blog.codeleak.pl:
- http://blog.codeleak.pl/2015/04/junit-testing-exceptions-with-java-8.html
- http://blog.codeleak.pl/2015/01/testing-with-files-and-directories-in.html
- http://blog.codeleak.pl/2014/07/junit-testing-exception-with-java-8-and-lambda-expressions.html
- http://blog.codeleak.pl/2014/05/spice-up-your-test-code-with-custom-assertions.html
- http://blog.codeleak.pl/2014/04/yet-another-way-to-handle-exceptions-in.html
- http://blog.codeleak.pl/2014/03/junit-expectedexception-rule-beyond.html
- http://blog.codeleak.pl/2013/07/3-ways-of-handling-exceptions-in-junit.html
- http://blog.codeleak.pl/2014/06/test-data-builders-and-object-mother.html
- http://blog.codeleak.pl/2014/11/unit-testing-excercise-with-fizzbuzz.html
- http://blog.codeleak.pl/2013/12/parametrized-junit-tests-with.html