Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7Jbw5CxUQ13D7gn25
20 lines
820 B
Plaintext
20 lines
820 B
Plaintext
@SpringBootTest + @AutoConfigureMockMvc, @MockitoBean IsbnLookupClient
|
|
|
|
POST /api/books/import/9780134685991 -> 200 {"isbn":"9780134685991","title":"Effective Java","author":"Joshua Bloch","price":"INR 499.00","published_on":"2024-01-01"}
|
|
GET /api/books?author=joshua bloch -> 200 [{"isbn":"9780134685991","title":"Effective Java","author":"Joshua Bloch","price":"INR 499.00","published_on":"2024-01-01"}]
|
|
|
|
beans in this context:
|
|
BookController (@RestController)=yes
|
|
ApiExceptionHandler (@ControllerAdvice)=yes
|
|
PriceJson (@JacksonComponent)=yes
|
|
MockMvc=yes
|
|
JsonMapper (Jackson 3)=yes
|
|
BookService (@Service)=yes
|
|
BookRepository (Spring Data)=yes
|
|
EntityManagerFactory=yes
|
|
DataSource=yes
|
|
RestClient.Builder=yes
|
|
IsbnLookupClient (@Component)=yes
|
|
AuditLogger (@Component)=yes
|
|
bean definitions=251
|