Courses & TutorialsProgramming

Master Java Unit Testing with Spring Boot and Mockito

Description

Spring Boot is the most popular framework for developing RESTful services. It has a great unit test function through Spring Boot Starter Test. Mockito is the most popular simulation framework. JUnit is the most popular Java unit testing framework.

In this course, you will learn to write great unit tests for simple RESTful services using Spring Boot Starter Test, Mockito, and JUnit. You will learn to write independent unit tests for RESTful Web services that communicate with multiple layers (Web, business, and data). You will learn how to write integration tests using the in-memory database H2.

You will build unit tests step by step in 40 simple steps. This course will be the perfect first step to introduce unit testing with Spring Boot and Mockito framework.

You will use Spring (dependency management), Spring Boot, Maven (dependency management), Eclipse (IDE) in the in-memory database H2 and Tomcat embedded Web server. We will help you set up each of them.

You will use all the frameworks that are part of Spring Boot Starter Test-JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert, and JsonPath.

You will learn to use the most important unit test annotations-@RunWith(SpringRunner.class), @SpringBootTest, @WebMvcTest, @DataJpaTest and @MockBean.

This course is suitable for:

  • You are a Spring/Spring Boot/Java programmer and you want to write great unit tests for your RESTful services
  • You want to write great unit tests with mocks
  • You want to learn the best practices for writing great unit tests using JUnit, Mockito and Spring Boot Starter Test
  • You want to learn to write great assertions using Hamcrest Matchers, JSON Assert, Assert J and JSON Path libraries

What you will learn

  • You will learn to write GREAT UNIT and INTEGRATION tests using Spring Boot Starter Test from SCRATCH
  • You will learn to write independent unit tests for RESTFUL Web services and talk to multiple layers (Web, business, and data)
  • You will learn to use the most important unit test annotations-@SpringBootTest, @WebMvcTest, @DataJpaTest and @MockBean
  • Use all 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 SPYS created by MOCKITO
  • You will learn to write integration tests using IN MEMORY DATABASE-H2

Specifications

  • Course Length: 4 Hours
  • Course Size: 2.47 Go
  • Number of sections: 4

How to Get the Course

Write an email to fullcoursesondemand@gmail.com for more detail

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button