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