feedm3 / learning-java

Learning tests for several java libraries and java features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning Java

Build Status Dependency Status

This repository is used to explore, learn and document different Java libraries and Java (especially Java 8) features.

Spock is used as testing framework for the Java libraries because of the great readability, syntax and build in features. For the Java API tests we use JUnit to not mix up some features and methods from groovy.

In his book "Clean Code" (Chapter 8: Boundaries), Robert C. Martin recommends to write learning tests. Instead of trying out third party code in our production code we write tests to explore the API and check if it behaves like we expect.

Run

To run all test just hit the following command or use the IntelliJ run configuration from this repo

gradlew test

After the test you can open the build/reports/tests/index.html file in your browser to see all generated test results. There are also more detailed reports for all spock tests in build/spock-reports/index.html.

Util

To check for the latest dependency versions run

gradlew dependencyUpdates -Drevision=release

Tested libraries

Tested Java features

About

Learning tests for several java libraries and java features

License:GNU General Public License v3.0


Languages

Language:Java 50.5%Language:Groovy 49.5%