Code examples for the book Mockito Made Clear, published by Pragmatic Programmers.
See the book page for more information.
You can check out the whole GitHub Action at diagram.yml. Notice that we're excluding the ignore
and .github
folders, using the excluded_paths
config.
To run the code, use the included Gradle wrapper (the gradlew
scripts for Un*x and Windows) and execute either the build
or test
tasks. You can also run individual tests via Gradle, or just load them into your preferred IDE.
This project uses Gradle version catalogs, which require Gradle 7.4 or higher. The included wrapper is higher than that. The dependency versions are inside the libs.versions.toml
file in the gradle
directory, which are used inside build.gradle
.
See also the Mockito play list at my YouTube channel.