Awesome
Unit Testing Demo
Getting started
Prerequisite
JDK 8 and Git must be installed in order to run the project locally.
Cloning the repository and running tests
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
Referenced articles
Examples in this project are partly coming from blog posts at http://blog.codeleak.pl:
- http://blog.codeleak.pl/2017/06/cleaner-parameterized-tests-with-junit-5.html
- http://blog.codeleak.pl/2017/06/testing-exceptions-with-junit-5.html
- 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