4.18 out of 5
4.18
66 reviews on Udemy

Java Unit Tests for Beginners: JUnit 5 for your first IT job

Learn to write Java unit tests in practice with JUnit 5. Online course with exercises and an extra JUnit cheat sheet.
Instructor:
Adrian Więch
218 students enrolled
English [Auto-generated]
Write a variety of unit test types
Create practical, real-world test scenarios
Follow unit testing best practices
Understand JUnit test lifecycle
Run unit tests in Eclipse

If you want to apply for your first job as a Java Developer but have never written a unit test before – this is the right course for you.

According to statistics, nearly 80% of all Java developers write unit tests with JUnit, and my developing practice proves it. It is a basic skill required by most employees, so if you want to start your Java Developer professional career, you have to master JUnit.

COURSE OVERVIEW 

In this course, I’ll teach you the practical basics of JUnit 5 – the latest version of the most popular Java unit testing framework.

I’ll introduce only the essential theory behind unit testing, and then dive straight into the code to get you started as quickly as possible. I’ll use an example of a simple, yet practical Java project to show you a variety of unit test types. You’ll also learn the best practices and coding standards for unit tests based on my developing experience.

This course comes with additional exercises to help you review everything you have learnt from my video lectures. I’ll also provide you with a sample solution to the exercises so that you can compare your answers. As a bonus, you will get a one-page cheat sheet for a quick JUnit 5 reference.

COURSE ADVANTAGES

concise – my short video lectures focused on the most important info help you save time and learn maximally effectively,

based on practice – instead of useless academic theory, you learn the best developing practices drawn from my work experience,

reasonably priced – compared to stationary developer bootcamps, the course is much cheaper, so you save not only time but also money,

available anywhere, anytime – the online form lets you run the course in the most convenient place (at home, work or in a café) and time (while commuting by metro or relaxing at home after work), so you can adjust it to your agenda,

accessible on desktop, mobile and TV – you can display my lectures on the device of your choice, so you don’t have to stick to your PC,

certificate of completion – after completing the course, you will receive a printable certificate that will make your resume more attractive.

Intro video music courtesy of Bensound

First things first

1
Introduction

Learn about the course, its author and his motivations.

2
Unit testing theory

Learn the essential theory of unit testing in just a few minutes.

3
Getting ready for the course

Make sure you have the IDE and project files ready.

JUnit 5 – Basics

1
First unit test

Write your first real-world unit test!

2
Best practices

Learn the most fundamental rules of good unit tests.

3
Test exceptions
4
Test with multiple assertions
5
Test null values
6
Test array equality
7
@BeforeEach and @AfterEach
8
@BeforeAll and @AfterAll

JUnit 5 – More Advanced Concepts

1
Parameterized Tests – ValueSource
2
Parameterized Tests – CsvSource
3
Parameterized Tests – CsvFileSource
4
Repeated tests
5
Test performance
6
Assumptions
7
Organise your code with @Nested
8
Other annotations
9
Summary
10
JUnit 5 Cheat Sheet

Additional videos

1
JUnit 5 vs. JUnit 4

Exercises

1
Write unit tests for RealEstateApp
2
Write unit tests for RealEstateApp - solution
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.2
4.2 out of 5
66 Ratings

Detailed Rating

Stars 5
41
Stars 4
17
Stars 3
6
Stars 2
0
Stars 1
2
fde1ba321c1c6937ea7b48763d9de86d
30-Day Money-Back Guarantee

Includes

1 hours on-demand video
3 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion