spring-test-slices: Spring Boot 4.1.2 test slices lab (@WebMvcTest, @JsonTest, @RestClientTest, @DataJpaTest vs @SpringBootTest)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7Jbw5CxUQ13D7gn25
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
@DataJpaTest
|
||||
|
||||
findByAuthorIgnoreCaseOrderByTitle("ANN") -> [Apple, Zebra]
|
||||
DataSource class -> EmbeddedDataSourceProxy
|
||||
JDBC URL starts with jdbc:h2:mem: -> true
|
||||
|
||||
beans in this context:
|
||||
BookController (@RestController)=no
|
||||
ApiExceptionHandler (@ControllerAdvice)=no
|
||||
PriceJson (@JacksonComponent)=no
|
||||
MockMvc=no
|
||||
JsonMapper (Jackson 3)=no
|
||||
BookService (@Service)=no
|
||||
BookRepository (Spring Data)=yes
|
||||
EntityManagerFactory=yes
|
||||
DataSource=yes
|
||||
RestClient.Builder=no
|
||||
IsbnLookupClient (@Component)=no
|
||||
AuditLogger (@Component)=no
|
||||
bean definitions=80
|
||||
Reference in New Issue
Block a user