Testing Spring Boot: Beginner to Guru
In modern software development having proper automated test coverage is considered a best practice. In this course you will learn how to test Java and Spring Boot applications using highly popular open source tools.
You will see in the first section of this course, the software testing ecosystem is very diverse. JUnit and Mockito are two of the leading testing libraries for Java. JUnit provides the test execution context, while Mockito give you power mocking capabilities. Together these libraries can be used to write unit tests, integration tests, and functional tests. You will also learn why having proper test coverage is critical to supporting other popular agile practices such as Continuous Integration and Continuous Deployment (aka CI/CD).
Agile teams all over the world consider Test Driven Development (TDD) a critical technique for producing quality software. This course begins by using JUnit 5 to demonstrate how to use TDD to create a simple Java application, then again using TDD to evolve the application to a higher level of quality and functionality.
Next, the course takes you into a deep dive of the features and functionality of JUnit 5. You will learn how to write JUnit 5 unit tests for a Java web application.
The primary focus of this course is on the JUnit 5 release. There are some very notable differences between JUnit 4 and JUnit 5. This course contains a dedicated section showing you how to migrate your JUnit 4 tests to JUnit 5.
As your testing needs become more complex, you will need to mock dependent objects. Mockito is the most popular mocking library used by Java developers.
If you are writing Spring Framework applications, you’re likely to be injecting dependent objects into your classes. You will learn how to use the robust mocking capabilities of Mocktio to mock dependent objects in your unit tests.
Welcome to the Testing Spring Boot course!
Introduction to Testing Software
Introduction to testing software.
See a very simple JUnit 5 unit test.
Overview of common testing frameworks for Java. Includes: JUnit 4, JUnit 5, TestNG, Spock, Mockito, Selenium, and GEB.
Learn why having proper test coverage via JUnit tests is needed to realize the benefits of CI/CD.
Test Driven Development By Example
Section overview for learning Test Driven Development using JUnit 5.
Learn about the original author of JUnit, Kent Beck, and his passion for Test Driven Development.
In this lesson, we review the development requirements for completing the TDD section of the course using JUnit 5.
Getting Started with JUnit 5
Overview of the Getting Started with JUnit 5 section of the course.
Overview of JUnit 5.
How to add the required dependencies for JUnit 5 to your Maven POM.
Simple "Hello World" example in JUnit 5.
See how to initialize properties using the JUnit @Before annotation.
Testing Java with JUnit 5
Introduction to this section of the course, which is an introduction to JUnit 5.
In this lesson we review the code of a project we will use to write tests using JUnit 5.
Advanced JUnit Testing
Introduction to the section of the course on advanced features of JUnit 5.
Learn how you can tag and filter JUnit tests.
Learn how to use JUnit nested tests.
JUnit 5 brings the capability to use Java interfaces for your unit tests
You can use Java default methods with your JUnit 5 tests.
See how to repeat JUnit tests multiple times.
JUnit 5 has the ability to inject dependencies into your tests.
Student assignment covering JUnit dependency injection.
Review of student assignment covering JUnit dependency injection.