mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 22:02:39 +02:00
Update content headings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Spring boot test annotation
|
||||
# @SpringBootTest annotation
|
||||
|
||||
`@SpringBootTest` This annotation is used to create a fully-configured instance of the Spring ApplicationContext for testing. It can be used to test the application's components, including controllers, services, and repositories, in a real application environment.
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# Mockbean Annotation
|
||||
# @MockBean Annotation
|
||||
|
||||
`MockBean` is a Spring annotation that can be used to create a mock implementation of a bean in the Spring application context. When a test is annotated with MockBean, Spring creates a mock implementation of the specified bean and adds it to the application context. The mock bean can then be used to replace the real bean during testing.
|
||||
|
||||
|
Reference in New Issue
Block a user