Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Java Testing - JUnit 5 Crash Course

via freeCodeCamp

Overview

This course aims to teach learners how to effectively use JUnit 5 for writing unit tests in Java applications. By the end of the course, students will be able to create and execute various types of tests such as parameterized tests, nested tests, and disabled tests. The course covers topics including JUnit architecture, testing exceptions, test lifecycle, conditional executions, assumptions, and repeated tests. The teaching method involves a crash course format with practical examples and demonstrations. This course is intended for Java developers looking to enhance their testing skills and improve the quality of their code through unit testing.

Syllabus

Introduction.
What is JUnit?.
JUnit Architecture.
First JUnit Test.
Testing Exceptions using assertThrows().
Understanding JUnit Test Lifecycle.
Conditional Executions.
Assumptions.
Repeated Tests.
Parameterized Tests.
Nested Tests.
Disabled Tests.

Taught by

freeCodeCamp.org

Reviews

Start your review of Java Testing - JUnit 5 Crash Course

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.