Spring Boot实战:JUnit 5与Mockito全栈测试
学习JUnit 5、Mockito与Spring Boot企业级项目测试,涵盖断言、参数化测试、Mock模拟及代码覆盖率,11小时实战课程助你掌握端到端测试技能。

Published 9/2025
Created by Krishan Gawaria
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Level: All | Genre: eLearning | Language: English | Duration: 184 Lectures ( 11h 42m ) | Size: 5.83 GB
Learn Concepts of JUnit 5, Mockito, and end-to-end Testing in Spring Boot Industry Level Project | Detailed Explanation
What you’ll learn
Create a Spring Boot App
@Test and Assertions
Various ways to Run Test Methods
Structuring Test Method – GIVEN WHEN THEN
Assertion Error Message
Assertions for boolean
Assertions for null
Multiple Assertions in a Test Method
Assertions of Exception
Static Import of Assertions
@Disabled and fail()
Build a Real Time Spring Boot Project
Service Layer Basic Test
@TestMethodOrder
Service Layer Parameterized Test
@ParameterizedTest
@CsvFileSource
@CsvSource
@MethodSource
@TestInstance
@BeforeEach
@AfterEach
@BeforeAll
@AfterAll
Lifecycle Methods
Code Coverage
maven-surefire-report-plugin
Jacoco
Mockito
@Mock
Mockito.when()
Mockito.then()
Mockito.any()
WebMvc – Testing Controller Layer
@WebMvcTest
@MockitoBean
MockMvcRequestBuilders
MockMvc
Testing Entity Layer
@DataJpaTest
TestEntityManager
Testing Repository Layer
Query Methods – @Query
Integration Testing – Testing All Layers Together
@SpringBootTest Annotation with webEnvironment
TestRestTemplate
Azure Database
TDD – Test Driven Development
Requirements
Basics of Java
Basics of Spring Boot
Description
This course aims at teaching all concepts of JUnit 5 Testing Framework with Detailed Explanation. Become Expert at Writing Test Cases of all Layers of Spring Boot Code. This course includes creation of Read World – Industry Level Spring Boot Project containing all the layers of coding – Controller Layer, Service Layer, Entity Layer, Repository Layer, DTO Layer, Custom Exception Layer etc.This course also includes connecting to Azure Database which includes creation of Resource Group, SQL Server, SQL Database, Creating Admin User etc in Azure.Learn all these topics and many more with this course:Create a Spring Boot App@Test and AssertionsVarious ways to Run Test MethodsStructuring Test Method – GIVEN WHEN THENAssertion Error MessageAssertions for booleanAssertions for nullMultiple Assertions in a Test MethodAssertions of ExceptionStatic Import of Assertions@Disabled and fail()Build a Real Time Spring Boot ProjectService Layer Basic Test@TestMethodOrderService Layer Parameterized Test@ParameterizedTest@CsvFileSource @CsvSource@MethodSource@TestInstance@BeforeEach@AfterEach@BeforeAll@AfterAll Lifecycle MethodsCode Coveragemaven-surefire-report-pluginJacocoMockito@MockMockito.when()Mockito.then()Mockito.any()WebMvc – Testing Controller Layer@WebMvcTest@MockitoBeanMockMvcRequestBuildersMockMvcTesting Entity Layer@DataJpaTestTestEntityManagerTesting Repository LayerQuery Methods – @QueryIntegration Testing – Testing All Layers Together@SpringBootTest Annotation with webEnvironmentTestRestTemplateAzure DatabaseTDD – Test Driven Development
此处内容需要权限查看
会员免费查看



