Book Image

JUnit and Mockito Unit Testing for Java Developers [Video]

By : Matthew Speake
Book Image

JUnit and Mockito Unit Testing for Java Developers [Video]

By: Matthew Speake

Overview of this book

Are you looking for a simple, no-nonsense guide to learning how unit testing works? This video course is what you need. Complete with hands-on exercises and best practices, this guide will help you to understand JUnit and Mockito unit testing with ease. The course starts with an introduction to unit testing and highlights the need and importance of its testing framework, JUnit. You’ll then understand the project structure and conventions by creating a Java project using JUnit. As you implement best practices for writing and running unit tests with JUnit and IntelliJ IDEA, you’ll discover how JUnit works. You’ll also write mock objects-based unit tests with Mockito for testing a simple layered architecture. Finally, you’ll learn to make more powerful assertions in your unit tests by harnessing the power of the Hamcrest assertions library that ships with JUnit. By the end of this course, you’ll have developed the skills needed for writing better unit tests using JUnit, Mockito, and Hamcrest. "All the resources and support files are available at https://github.com/PacktPublishing/JUnit-and-Mockito-Unit-Testing-for-Java-Developers
Table of Contents (6 chapters)
Chapter 6
Looking at Hamcrest Assertions Library
Content Locked
Section 14
Keep Yourself Motivated by Checking the Happy Path Test Output
This video shows how to check the output of the happy path test.