Learning JUnit 5

Learning JUnit 5

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 05m | 114 MB

JUnit is the default testing framework for millions of Java developers worldwide. This practical guide teaches the newest version, JUnit 5, using real-world test cases to introduce the most notable features. First, get an overview of the new architecture, including the JUnit platform and the extension model, JUnit Jupiter, and learn how to migrate from JUnit 4. Then explore how to write tests with JUnit 5. Instructor Boni García covers assertions, tagging and filtering, nesting and repeating, dynamic tests, dependency injection, annotations, and more. By the end of the course, you will know how to write and run simple test cases and integrate Junit with third-party frameworks like Mockito.

Table of Contents

What s New in JUnit 5
1 Course overview
2 Moving from JUnit 4 to JUnit 5
3 JUnit 5 architecture
4 JUnit platform
5 Running tests in JUnit 5
6 Extension model

JUnit 5 Programming Model
7 Standard tests
8 Assertions
9 Tagging and Filtering tests
10 Conditional test execution
11 Nested and repeated tests
12 Dynamic tests
13 Dependency injection
14 Test interfaces