课程: Complete Guide To Java Testing with JUnit 5 & Mockito
Why is testing important?
- Testing is the backbone of great software. It's not just about catching bugs. It's about ensuring your code does exactly what users need reliably and securely. Early bug detection and robust testing is the secret sauce that makes your code shine. This reduces maintenance costs and builds trust with users who depend on your product. My name is Kathryn, and I'm a Java software engineer. In this course, we'll cover automated testing for the Java programming language. You'll learn how to write tests with Junit 5, explore the test lifecycle, and use Mockito to mock objects, stub methods, and verify interactions. By the end, you'll gain a solid understanding of testing methodologies and tools to ensure reliability in your Java applications. Let's get started.
下载课程离线学习
内容
-
-
Key concepts in software testing2 分钟 39 秒
-
Using test cases to verify software4 分钟 1 秒
-
(已锁定)
Types of software testing5 分钟 4 秒
-
(已锁定)
Automated vs. manual testing3 分钟
-
(已锁定)
What is a testing framework?1 分钟 38 秒
-
(已锁定)
Java testing frameworks2 分钟 48 秒
-
(已锁定)
Understand test-driven development (TDD)3 分钟 43 秒
-
(已锁定)
Ensure quality with test coverage1 分钟 33 秒
-
(已锁定)
Write effective tests with F.I.R.S.T. testing principles3 分钟 23 秒
-
-
-
Set up JUnit 5 in your Java application2 分钟 24 秒
-
(已锁定)
Write and run your first JUnit 5 test4 分钟 11 秒
-
(已锁定)
Assertions in JUnit 57 分钟 56 秒
-
(已锁定)
JUnit 5 test lifecycle1 分钟 51 秒
-
(已锁定)
JUnit 5 lifecycle hooks2 分钟 49 秒
-
(已锁定)
Testing exceptions in JUnit 52 分钟 54 秒
-
(已锁定)
Debug tests in JUnit 54 分钟 30 秒
-
(已锁定)
Best practices for writing tests in JUnit 52 分钟 17 秒
-
(已锁定)
Challenge: Write a JUnit 5 test for a temperature converter47 秒
-
(已锁定)
Solution: Write a JUnit 5 Test for a Temperature Converter6 分钟 33 秒
-
-
-
Task manager project prompt1 分钟 17 秒
-
(已锁定)
Set up red phase for Add Task functionality in Test Class3 分钟 3 秒
-
(已锁定)
Implement Get ID in Task Class2 分钟 14 秒
-
(已锁定)
Implement Add Task and enter green phase1 分钟 54 秒
-
(已锁定)
Prevent tasks with duplicate IDs4 分钟 48 秒
-
(已锁定)
Implement Remove Task with Test Driven Development2 分钟 45 秒
-
(已锁定)
Implement task descriptions with Test Driven Development2 分钟 56 秒
-
(已锁定)
Implement Update Description with Test Driven Development2 分钟 1 秒
-
(已锁定)
Implement Retrieve Task with Test Driven Development2 分钟
-
(已锁定)
Refactor tests to ensure maintainability6 分钟 44 秒
-
-
-
Introduction to parameterized tests in JUnit2 分钟 4 秒
-
(已锁定)
Parameterized tests with EnumSource in JUnit 53 分钟 21 秒
-
(已锁定)
Parameterized tests with ValueSource in JUnit 52 分钟 20 秒
-
(已锁定)
Parameterized tests with CsvSource in JUnit 53 分钟 26 秒
-
(已锁定)
Conditional test execution based on Java version and OS2 分钟 12 秒
-
(已锁定)
Conditional test execution based on environment variables2 分钟 35 秒
-
(已锁定)
Conditional test execution based on custom conditions1 分钟 40 秒
-
(已锁定)
Control test execution with @Order2 分钟 37 秒
-
(已锁定)
Create test suites in JUnit 53 分钟 12 秒
-
(已锁定)
Create a test coverage report with JaCoCo4 分钟 9 秒
-
(已锁定)
Ensure test coverage with JaCoCo5 分钟 41 秒
-
(已锁定)
Execute parallel tests in JUnit 52 分钟 41 秒
-
(已锁定)
Custom extensions in JUnit 54 分钟 40 秒
-
(已锁定)
Challenge: Write a test class for a email validator1 分钟 57 秒
-
(已锁定)
Solution: Write a test class for a email validator5 分钟 32 秒
-
-
-
(已锁定)
Add a display name to your tests1 分钟 30 秒
-
(已锁定)
Nested tests3 分钟 31 秒
-
(已锁定)
Timeout1 分钟 47 秒
-
(已锁定)
AssertTimeout2 分钟 31 秒
-
(已锁定)
AssertAll3 分钟 50 秒
-
(已锁定)
Message suppliers2 分钟 3 秒
-
(已锁定)
Assumptions API2 分钟 57 秒
-
(已锁定)
TempDir7 分钟 15 秒
-
(已锁定)
Migrate from JUnit 4 to JUnit 52 分钟 52 秒
-
(已锁定)
Challenge: Sorting algorithm validation55 秒
-
(已锁定)
Solution: Sorting algorithm validation6 分钟 47 秒
-
(已锁定)
-
-
(已锁定)
Set up Mockito1 分钟 40 秒
-
(已锁定)
Mocking basics3 分钟 17 秒
-
(已锁定)
How to mock an object in Java2 分钟 32 秒
-
(已锁定)
Stub a method with Mockito3 分钟
-
(已锁定)
Verify an interaction with Mockito3 分钟 49 秒
-
(已锁定)
Verify arguments with argument matchers3 分钟 13 秒
-
(已锁定)
Verify arguments with argument captors5 分钟 7 秒
-
(已锁定)
Challenge: Test a library management system1 分钟 32 秒
-
(已锁定)
Solution: Test a library management system7 分钟 6 秒
-
(已锁定)
-
-
(已锁定)
Spy on real objects with Mockito4 分钟 31 秒
-
(已锁定)
Test exception handling with Mockito2 分钟 10 秒
-
(已锁定)
Test void methods with Mockito5 分钟 10 秒
-
(已锁定)
Verify no (or a set number of) interactions5 分钟 1 秒
-
(已锁定)
GetAllValues with ArgumentCaptor5 分钟 1 秒
-
(已锁定)
Test asynchronous code with Mockito3 分钟 17 秒
-
(已锁定)
Mock a static method with Mockito3 分钟 15 秒
-
(已锁定)
Challenge: Test an ordering service1 分钟 2 秒
-
(已锁定)
Solution: Test an ordering service8 分钟 21 秒
-
(已锁定)
-
-
(已锁定)
Walk through a basic Spring Boot application3 分钟 53 秒
-
(已锁定)
Write your first Spring Boot test3 分钟 43 秒
-
(已锁定)
Test Spring data repositories6 分钟 1 秒
-
(已锁定)
Test Spring services4 分钟 9 秒
-
(已锁定)
Test Spring controllers5 分钟 58 秒
-
(已锁定)
Integration testing with Spring Boot10 分钟 40 秒
-
(已锁定)
Best practices and tips for testing Spring Applications2 分钟 9 秒
-
(已锁定)
Challenge: Test a Spring weather application1 分钟 8 秒
-
(已锁定)
Solution: Test a Spring weather application16 分钟 37 秒
-
(已锁定)