4.43 out of 5
4.43
315 reviews on Udemy

Testing Spring Boot: Beginner to Guru

Become an Expert Testing Java and Spring Boot Applications using JUnit 5, Mockito, Spring Boot, and More!
Instructor:
John Thompson
3,100 students enrolled
English
Learn Important Concepts behind Test Driven Development
Understand different types of testing - Unit, Integration, Functional
Master the JUnit 5 testing API
Easily integrate Mockito with JUnit 5 Tests
Migrate JUnit 4 tests to JUnit 5
Test Spring Framework Applications with JUnit 5 and Mockito
Write Unit Tests with Spring MVC Test
Learn to use testing features of Spring Boot

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.

Introduction

1
Meet Your Instructor
2
Introduction

Welcome to the Testing Spring Boot course!

3
Getting the Most out of this Course
4
Is Your IDE Free Like a Puppy?
5
IntelliJ 120 Day Trial
6
Slack Community

Introduction to Testing Software

1
Introduction

Introduction to testing software.

2
Introduction to Testing Software
3
JUnit Test Example

See a very simple JUnit 5 unit test.

4
Common Testing Frameworks for Java

Overview of common testing frameworks for Java. Includes: JUnit 4, JUnit 5, TestNG, Spock, Mockito, Selenium, and GEB.

5
Beyond Testing with CI and CD

Learn why having proper test coverage via JUnit tests is needed to realize the benefits of CI/CD.

6
Conclusion

Test Driven Development By Example

1
Introduction

Section overview for learning Test Driven Development using JUnit 5.

2
TDD By Example Kent Beck

Learn about the original author of JUnit, Kent Beck, and his passion for Test Driven Development.

3
Development Requirements and Base Project

In this lesson, we review the development requirements for completing the TDD section of the course using JUnit 5.

4
Multi-Currency Money
5
Degenerate Objects
6
Equality for All
7
Privacy
8
Franc-ly Speaking
9
Equality for All, Redux
10
Apples and Oranges
11
Makin' Objects
12
Times We're Livin' In
13
Interesting Times
14
The Root of All Evil
15
Addition, Finally
16
Make It
17
Change
18
Mixed Currencies
19
Abstraction, Finally
20
Viewing Test Coverage from IntelliJ
21
Conclusion

Getting Started with JUnit 5

1
Introduction to Getting Started with JUnit 5

Overview of the Getting Started with JUnit 5 section of the course.

2
Introduction to JUnit 5

Overview of JUnit 5.

3
JUnit Maven Project Setup

How to add the required dependencies for JUnit 5 to your Maven POM.

4
JUnit Hello World Test

Simple "Hello World" example in JUnit 5.

5
Initializing Properties with JUnit 5 @BeforeEach

See how to initialize properties using the JUnit @Before annotation.

6
JUnit 5 Test Instance Lifecycle Demo
7
Running JUnit 5 Tests from Command Line with Maven
8
JUnit Gradle Project Setup
9
Running JUnit 5 Tests from Command Line with Gradle
10
Conclusion of Getting Started with JUnit 5

Testing Java with JUnit 5

1
Introduction to Testing Java with JUnit 5

Introduction to this section of the course, which is an introduction to JUnit 5.

2
Java Test Project Code Review

In this lesson we review the code of a project we will use to write tests using JUnit 5.

3
Overview of JUnit Assertions
4
JUnit Assertions
5
JUnit Grouped Assertions
6
JUnit Dependent Assertions
7
Skipping JUnit Tests
8
JUnit Test Display Names
9
Testing Expected Exceptions
10
Testing Timeouts
11
JUnit Assumptions
12
Conditional JUnit Test Execution
13
Using AssertJ with JUnit
14
Using Hamcrest with JUnit
15
Assignment - Write JUnit Test for Vet Controller List Vets
16
Assignment Review - Write JUnit Test for Vet Controller List Vets
17
Conclusion

Advanced JUnit Testing

1
Introduction to Advanced JUnit Testing

Introduction to the section of the course on advanced features of JUnit 5.

2
Tagging and Filtering JUnit Tests

Learn how you can tag and filter JUnit tests.

3
JUnit Nested Tests

Learn how to use JUnit nested tests.

4
JUnit Test Interfaces

JUnit 5 brings the capability to use Java interfaces for your unit tests

5
Using JUnit Default Test Methods

You can use Java default methods with your JUnit 5 tests.

6
Repeating Tests with JUnit 5

See how to repeat JUnit tests multiple times.

7
JUnit Test Dependency Injection

JUnit 5 has the ability to inject dependencies into your tests.

8
Assignment - JUnit Dependency Injection

Student assignment covering JUnit dependency injection.

9
Assignment Review

Review of student assignment covering JUnit dependency injection.

10
JUnit Parameterized Tests - Value Source
11
JUnit Parameterized Test - Display Name
12
JUnit Parameterized Tests - ENUM Source
13
JUnit Parameterized Tests - CSV Source
14
JUnit Parameterized Tests - CSV File Source
15
JUnit Parameterized Tests - Method Provider
16
JUnit Parameterized Tests - Custom Provider
17
Unit Tests vs Integration Tests
18
JUnit Extensions
19
Conclusion

Test Execution

1
Introduction
2
Running Tests from IDE
3
Maven Surefire Plugin
4
Maven Failsafe Plugin
5
Maven SurefireTest Reporting
6
Executing JUnit Test with Tags in Maven
7
Running Tests from CI Builds With Maven
8
CircleCI Build Badge
9
Gradle Project Overview
10
Running JUnit Tests from Gradle
11
Integration Tests With Gradle
12
Gradle JUnit Test Reports
13
Conclusion

JUnit 4 to JUnit 5 Migration Guide

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4
4.4 out of 5
315 Ratings

Detailed Rating

Stars 5
153
Stars 4
104
Stars 3
44
Stars 2
9
Stars 1
8
99c419773904f27fe75030456e44652e
30-Day Money-Back Guarantee

Includes

15 hours on-demand video
2 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion