From the course: Complete Guide To Java Testing with JUnit 5 & Mockito
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Reflect on testing in Java: Key takeaways and insights
From the course: Complete Guide To Java Testing with JUnit 5 & Mockito
Reflect on testing in Java: Key takeaways and insights
- Testing in software development is a critical part of creating reliable software. It ensures your applications work as expected under different conditions, helping you catch bugs early in the development cycle. It promotes confidence in your code, enables refactoring, and ultimately enhances maintainability. In this course, we focused on writing automated tests in Java using different libraries and frameworks to ensure high code quality and streamline the testing process. We leveraged JUnit and Mockito to write robust unit tests and with Spring Boot we used specific testing annotations to ensure comprehensive integration testing. We also covered test driven development and testing best practices, ensuring our tests are independent, readable, and have good coverage. Effective testing in Java is not just about writing tests, but embracing a testing culture that values quality and reliability. By leveraging the right tools, following best practices, and integrating testing into your…
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
Key concepts in software testing2m 39s
-
Using test cases to verify software4m 1s
-
(Locked)
Types of software testing5m 4s
-
(Locked)
Automated vs. manual testing3m
-
(Locked)
What is a testing framework?1m 38s
-
(Locked)
Java testing frameworks2m 48s
-
(Locked)
Understand test-driven development (TDD)3m 43s
-
(Locked)
Ensure quality with test coverage1m 33s
-
(Locked)
Write effective tests with F.I.R.S.T. testing principles3m 23s
-
-
-
Set up JUnit 5 in your Java application2m 24s
-
(Locked)
Write and run your first JUnit 5 test4m 11s
-
(Locked)
Assertions in JUnit 57m 56s
-
(Locked)
JUnit 5 test lifecycle1m 51s
-
(Locked)
JUnit 5 lifecycle hooks2m 49s
-
(Locked)
Testing exceptions in JUnit 52m 54s
-
(Locked)
Debug tests in JUnit 54m 30s
-
(Locked)
Best practices for writing tests in JUnit 52m 17s
-
(Locked)
Challenge: Write a JUnit 5 test for a temperature converter47s
-
(Locked)
Solution: Write a JUnit 5 Test for a Temperature Converter6m 33s
-
-
-
Task manager project prompt1m 17s
-
(Locked)
Set up red phase for Add Task functionality in Test Class3m 3s
-
(Locked)
Implement Get ID in Task Class2m 14s
-
(Locked)
Implement Add Task and enter green phase1m 54s
-
(Locked)
Prevent tasks with duplicate IDs4m 48s
-
(Locked)
Implement Remove Task with Test Driven Development2m 45s
-
(Locked)
Implement task descriptions with Test Driven Development2m 56s
-
(Locked)
Implement Update Description with Test Driven Development2m 1s
-
(Locked)
Implement Retrieve Task with Test Driven Development2m
-
(Locked)
Refactor tests to ensure maintainability6m 44s
-
-
-
Introduction to parameterized tests in JUnit2m 4s
-
(Locked)
Parameterized tests with EnumSource in JUnit 53m 21s
-
(Locked)
Parameterized tests with ValueSource in JUnit 52m 20s
-
(Locked)
Parameterized tests with CsvSource in JUnit 53m 26s
-
(Locked)
Conditional test execution based on Java version and OS2m 12s
-
(Locked)
Conditional test execution based on environment variables2m 35s
-
(Locked)
Conditional test execution based on custom conditions1m 40s
-
(Locked)
Control test execution with @Order2m 37s
-
(Locked)
Create test suites in JUnit 53m 12s
-
(Locked)
Create a test coverage report with JaCoCo4m 9s
-
(Locked)
Ensure test coverage with JaCoCo5m 41s
-
(Locked)
Execute parallel tests in JUnit 52m 41s
-
(Locked)
Custom extensions in JUnit 54m 40s
-
(Locked)
Challenge: Write a test class for a email validator1m 57s
-
(Locked)
Solution: Write a test class for a email validator5m 32s
-
-
-
(Locked)
Add a display name to your tests1m 30s
-
(Locked)
Nested tests3m 31s
-
(Locked)
Timeout1m 47s
-
(Locked)
AssertTimeout2m 31s
-
(Locked)
AssertAll3m 50s
-
(Locked)
Message suppliers2m 3s
-
(Locked)
Assumptions API2m 57s
-
(Locked)
TempDir7m 15s
-
(Locked)
Migrate from JUnit 4 to JUnit 52m 52s
-
(Locked)
Challenge: Sorting algorithm validation55s
-
(Locked)
Solution: Sorting algorithm validation6m 47s
-
(Locked)
-
-
(Locked)
Set up Mockito1m 40s
-
(Locked)
Mocking basics3m 17s
-
(Locked)
How to mock an object in Java2m 32s
-
(Locked)
Stub a method with Mockito3m
-
(Locked)
Verify an interaction with Mockito3m 49s
-
(Locked)
Verify arguments with argument matchers3m 13s
-
(Locked)
Verify arguments with argument captors5m 7s
-
(Locked)
Challenge: Test a library management system1m 32s
-
(Locked)
Solution: Test a library management system7m 6s
-
(Locked)
-
-
(Locked)
Spy on real objects with Mockito4m 31s
-
(Locked)
Test exception handling with Mockito2m 10s
-
(Locked)
Test void methods with Mockito5m 10s
-
(Locked)
Verify no (or a set number of) interactions5m 1s
-
(Locked)
GetAllValues with ArgumentCaptor5m 1s
-
(Locked)
Test asynchronous code with Mockito3m 17s
-
(Locked)
Mock a static method with Mockito3m 15s
-
(Locked)
Challenge: Test an ordering service1m 2s
-
(Locked)
Solution: Test an ordering service8m 21s
-
(Locked)
-
-
(Locked)
Walk through a basic Spring Boot application3m 53s
-
(Locked)
Write your first Spring Boot test3m 43s
-
(Locked)
Test Spring data repositories6m 1s
-
(Locked)
Test Spring services4m 9s
-
(Locked)
Test Spring controllers5m 58s
-
(Locked)
Integration testing with Spring Boot10m 40s
-
(Locked)
Best practices and tips for testing Spring Applications2m 9s
-
(Locked)
Challenge: Test a Spring weather application1m 8s
-
(Locked)
Solution: Test a Spring weather application16m 37s
-
(Locked)