Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Backend development for Java graduates
·
Module 8
Testing Spring Applications
1
Fluent Assertions with AssertJ
Use AssertJ for fluent assertions in tests.
2
Unit Testing Services with JUnit 5 and Mockito
Write unit tests for the service layer using JUnit 5 and Mockito.
3
Mastering Mocking with @Mock and @InjectMocks
Mock dependencies in unit tests using @Mock and @InjectMocks.
4
Testing the Web Layer with MockMvc
Write integration tests for the web layer using @WebMvcTest and MockMvc.
5
Testing the Repository Layer with @DataJpaTest
Write integration tests for the repository layer using @DataJpaTest.
6
End-to-End Testing with Spring Boot and TestRestTemplate
Write end-to-end tests for the application using @SpringBootTest and TestRestTemplate.
7
Measuring Test Coverage
Measure test coverage to identify untested code paths.
Previous module
Securing APIs with Spring Security
Next module
Advanced Configuration, Caching, & Monitoring