Course info
Nov 8, 2018
1h 28m

Unit test frameworks like JUnit 5 help guide the design of your code as well as ensure that it works. In this course, Getting Started Unit Testing with JUnit 5, you'll get up to speed on the key skill of unit testing by leveraging the latest version of the popular JUnit unit test framework, JUnit 5. First, you'll learn how to validate your code with assertions and leverage JUnit 5 lifecycle methods. Next, you'll explore how to categorize tests, test exception handling, produce clear test reports, and many other JUnit 5 capabilities. Finally, you'll delve into two techniques critical to learn for unit testing - how to handle pre-existing untested code and how to drive development from a unit test. By the end of this course, you'll have the necessary knowledge to efficiently begin unit testing your own projects with JUnit 5.

About the author
About the author

Jim Weaver is a software developer and mentor with a love for small teams, light-weight processes, and close interaction with customers.

More from the author
Building CICD Pipelines with Atlassian Bamboo
1h 53m
Feb 1, 2021
Getting Started with Atlassian Bamboo
1h 36m
Nov 9, 2020
Bitbucket Cloud Fundamentals
3h 40m
Aug 25, 2020
More courses by Jim Weaver
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, I'm Jim Weaver for Pluralsight, and I've been writing business-critical code in a variety of industries for decades. I've relied on unit test frameworks like JUnit for much of that time to help guide the design of my code, as well as ensure that it works. JUnit 5 is the latest incarnation of the most popular Java unit test library, and in this beginner-level course, Getting Started Unit Testing with JUnit 5, I'll introduce you to both unit testing and the JUnit 5 library. The goal of this course is to get you ready to unit test your own Java projects with JUnit 5 as rapidly as possible. We'll get JUnit 5 working with a realistic project and write our first test quickly. Then we'll dive into the most essential and useful features of JUnit 5 as we add functionality to that system, assertions you can use to validate your code, test setup and teardown methods, producing clear test reports, running categories of tests, and dealing with exceptions. JUnit 5 makes use of Java 8 lambda support, and we'll see that in action while testing our project as well. We'll also learn how to deal with some common real-world issues when trying to write tests for existing code, code that has mixed concerns and code with dependencies that are making your tests difficult. Finally, we'll use JUnit 5 to kick the tires on test-driven development. When we're done, you'll be ready to test your projects with JUnit 5 and also to learn more through the JUnit 5 Fundamentals course. So come join me for Getting Started Unit Testing with JUnit 5.