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:
Claude
2026-11-14 15:26:55 +05:30
parent c92977b23d
commit d7497c8ab1
53 changed files with 1547 additions and 0 deletions
@@ -0,0 +1,19 @@
@JsonTest with JacksonTester<BookView>
write(view) -> {"isbn":"9780134685991","title":"Effective Java","author":"Joshua Bloch","price":"INR 499.00","published_on":"2018-01-06"}
parseObject(...).price() -> Price[currency=INR, amount=499.00]
beans in this context:
BookController (@RestController)=no
ApiExceptionHandler (@ControllerAdvice)=no
PriceJson (@JacksonComponent)=yes
MockMvc=no
JsonMapper (Jackson 3)=yes
BookService (@Service)=no
BookRepository (Spring Data)=no
EntityManagerFactory=no
DataSource=no
RestClient.Builder=no
IsbnLookupClient (@Component)=no
AuditLogger (@Component)=no
bean definitions=35