Spring Boot Overview

Spring Boot is an opinionated framework that helps developers build Spring-based applications quickly and easily.

The main goal of Spring Boot is to quickly create Spring-based applications without requiring developers to write the same boilerplate configuration again and again.

Spring boot is very popular framework to develop REST web services and microservices.


What you'll learn?

Learn to write industry-standard Unit and Integration tests in BDD (Behaviour Driven Development) style using Spring Boot Starter Test dependency from scratch

✅ Learn how to use BDD (Behaviour Driven Development) format that is given/when/then to write Unit tests.

Learn to Unit test Spring boot application Repository layer

Learn to Unit test Spring boot application Service layer

Learn to Unit test Spring boot application Controller layer

Learn how to do Integration testing for the Spring boot application.

You will learn to use the most important Unit Testing ANNOTATIONS - @SpringBootTest, @WebMvcTest, @DataJpaTest, and @MockBean

Use ALL the FRAMEWORKS in Spring Boot Starter Test - JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert, and JsonPath.

You will learn to write Unit tests using Mocks and Stubs created with Mockito

Learn how to use Mockito annotations to create mock objects.

Learn to Write Integration Tests using a MySQL database.

Learn to write Integration Tests using a Testcontainers

You will learn to Write INDEPENDENT Integration tests for RESTFUL web services talking with MULTIPLE LAYERS - controller, service, and repository layers.

Requirements

  • Java basics
  • JUnit basics
  • Mockito basics
  • Basic understanding of using IntelliJ IDEA

Tools and Technologies used in this course:

Technologies and Libraries:

  1. Java 11+
  2. Spring Boot
  3. Spring MVC
  4. Spring Data JPA ( Hibernate)
  5. JUnit 5 Framework
  6. Mockito 4 (Latest)
  7. Hamcrest framework
  8. AssertJ Library
  9. JsonPath Library

IDE:

  • Intellij IDEA

Database:

  • H2 In-memory database ( for repository layer testing)
  • MySQL database ( for Integration testing)


Testing Spring Boot Application with JUnit and Mockito


  Course Overview
Available in days
days after you enroll
  Lecture Notes (Download PDF)
Available in days
days after you enroll
  Setup Spring Boot Project
Available in days
days after you enroll
  Spring Boot - Unit Testing Repository Layer
Available in days
days after you enroll
  Spring Boot - Unit Testing Service Layer
Available in days
days after you enroll
  Spring Boot - Unit Testing Controller Layer
Available in days
days after you enroll
  Spring Boot - Integration Testing using Local MySQL Database
Available in days
days after you enroll
  Spring Boot - Integration Testing using Testcontainers
Available in days
days after you enroll
  Assignments and Solutions
Available in days
days after you enroll
  Quiz - Test Yourself
Available in days
days after you enroll

Choose a Pricing Option

Your Instructor

Hi, I'm Ramesh. I'm a software engineer with 10 years of experience in Java, Spring Boot, Microservices, Hibernate, Angular, React, and related open source technologies.

I am a Vmware Spring Certified Professional.

I am the founder and author of the top Java blog at https://www.javaguides.net/ (1M views per month).

I am YouTuber at https://www.youtube.com/c/javaguides ( 60K Subscribers)

How do I GET Help?


Well, each video has a comment section so if you have any questions or queries then you can ask in the comment section.

I will reply to each and every question/query. (I am a responsive Instructor)

You can also connect with me at [email protected]