Java: Testing with JUnit

Java: Testing with JUnit

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 2h 20m | 430 MB

Unit testing is of crucial importance in developing stable applications. Java developers need to write unit tests, and JUnit is the main unit testing framework for Java. In this course, trainer and developer Maaike van Putten helps you learn to test your Java code effectively. Maaike explains what unit testing is and the advantages that it offers. She covers JUnit and shows you how to set it up and run your first test. Maaike steps through the process of writing a basic test, including useful tools like JUnit Annotations, JUnit Write, JUnit DisplayName, and more. She goes over more advanced uses of JUnit, such as dependency injection, parameterized tests, and timeouts, to name a few. Maaike finishes up with a quick peek at next steps you can take, like how to make code ready for unit testing, best practices, and a brief overview of Mockito.

Table of Contents

1 Create proper unit tests in Java
2 What should you know
3 Unit testing and other types of testing
4 TDD Test-driven development
5 Advantages of unit testing
6 What is JUnit

1. Getting Started with JUnit
7 Quick example of a basic unit test
8 Setting up JUnit for IntelliJ
9 Setting up JUnit for VS Code
10 Setting up JUnit for Eclipse
11 Your first test HelloJUnit

2. Writing Basic Tests with JUnit
12 Annotations
13 Write and run test classes and methods
14 DisplayName
15 Assertions
16 Assumptions
17 Test execution order
18 Nested tests

3. More Advanced Usage of JUnit
19 Dependency injection in your tests
20 Repeated tests
21 Parameterized tests
22 Timeouts
23 Parallel execution
24 Lifecyle control Before and after
25 Custom messages and reports
26 Conditional test execution
27 Disabling unit tests

4. Quick Peek at Next Steps
28 How to make code ready for unit testing
29 Best practices
30 Mockito

31 Next steps with JUnit