To be determined
Welcome to the "JUnit5" course, designed to provide a comprehensive understanding of JUnit5, the latest version of the popular unit testing framework for Java. This course highlights the differences between JUnit4 and JUnit5, covering its modular architecture and new features. With a mix of presentations, examples, and hands-on exercises, you'll learn how to effectively use JUnit5 for test-driven development (TDD).
This course covers the following key topics:
By the end of this course, participants will be able to:
Master JUnit5 Architecture:
Effectively Use JUnit5 in Projects:
Utilize Advanced Testing Features:
Apply TDD Principles:
Enroll in the "JUnit5" course to gain a comprehensive understanding of the latest version of the JUnit framework. Through this course, you will enhance your unit testing skills, apply TDD principles, and integrate advanced testing techniques using Mockito. Whether for professional development, academic purposes, or personal interest, this course will equip you with the knowledge and skills necessary to excel in Java unit testing.
After the completion of the course, students will be able to:
Java developers, architects, & testers who need to automate a part of their activity.
1. [Theory – 1.5h: Practice – 0.5h] Introducing JUnit 5
• The fundamentals of unit testing
• JUnit 5 architecture
• JUnit 4 vs JUnit 5
• Needed dependencies
• The @Test annotation
2. [Theory – 2.5h: Practice – 4.5h] JUnit 5 New Features and Annotations
• Annotations
• Assertions
• Assumptions
• Dependency Injection in JUnit 5
• Parameterized tests
• Dynamic tests
3. [Theory – 1h: Practice – 2h] Integrating JUnit 5 with Mockito
• Mock objects
• JUnit 5 extensions
• MockitoExtension
• Cucumber overview / BDD
Total: theory 5h (42%), practice 7h (58%)