Springboot Unit & Integration Testing With Junit And Mockito

Posted By: ELK1nG

Springboot Unit & Integration Testing With Junit And Mockito
Published 1/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 1.54 GB | Duration: 2h 16m

Introduction to SpringBoot 2 & 3, Spring Testing, Unit Testing, Integration Testing, JUnit and Mockito

What you'll learn

Explore the architecture of the Spring Boot testing framework and write integration tests

Explore the architecture of the Spring Boot testing framework and write integration tests

Explore the architecture of the Spring Boot testing framework and write integration tests

Explore the architecture of the Spring Boot testing framework and write integration tests

Requirements

Java: Java 8 or higher

Spring Boot: version 2.1 or higher

Maven: version 3.6 or higher

Description

JUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsJUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsJUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsJUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsJUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsNo Risk – Udemy RefundFinally, there is no risk. You can preview 25% of the course for free. Once you purchase the course, if for some reason you are not happy with the course, Udemy offers a 30-day refund (based on Udemy's Refund Policy).So you have nothing to lose, sign up for this course and learn how to apply Spring Boot Unit TestingTarget AudienceJava Developers with Spring Boot experience

Overview

Section 1: Step 1 - Creating Base Project

Lecture 1 Import the Spring Service Project

Section 2: Step 2 - Creating Unit Tests for Service Layer using Junit & Mockito

Lecture 2 Part 1 - Test Course Service (Start)

Lecture 3 Part 2 - Test Course Service (End)

Lecture 4 Part 3 - Test Instructor Service (Start)

Lecture 5 Part 4 - Test Instructor Service (End)

Lecture 6 Part 5 - Test Role Service

Lecture 7 Part 6 - Test User Service

Lecture 8 Part 7 - Test Student Service (Start)

Lecture 9 Part 8 - Test Student Service (End)

Section 3: Step 3 - Configuring Test Containers For Integration Tests

Lecture 10 Part 1 - TestContainers Dependencies

Lecture 11 Part 2 - Create MySQL Container

Lecture 12 Part 3 - Generate InitialData Script

Section 4: Step 4 - Testing Repositories using TestContainers

Lecture 13 Part 1 - Course Dao Integration Tests

Lecture 0 Part 2 - Instructor Dao Integration Tests

Lecture 14 Part 3 - Role Dao Integration Tests

Lecture 15 Part 4 - User Dao Integration Tests

Lecture 16 Part 5 - Student Dao Integration Tests

Lecture 17 Part 6 - Reuse same Database Container for Testing

The course is appropriate for all Spring Boot developers.