All languages

Java

You're viewing a free preview. Sign in free to read every script.

Why this exists A pipeline that builds without running tests is only checking that the code compiles. JUnit 5 is the standard test framework and Mockito replaces slow or unsafe collaborators (an HTTP client, a chat…

Testing with JUnit 5 and Mockito: Assertions, Parameterised Tests and Test Doubles

Write unit tests with JUnit 5, cover many cases with parameterised tests, replace collaborators with Mockito mocks, verify interactions, capture arguments, and publish the results in Jenkins.

Sign in free to read this script, along with the rest of the library.

Sign in free