Spring Boot + Kubernetes Tutorial Series - Part 10 : Implementing Create Bookmarks API

preview_player
Показать описание
#sivalabs #java #springboot #kubernetes #k8s #fullstack #docker #devops #reactjs

In this video we are going to look at:
* Better approach to modelling HTTP request and response types
* Implement Create Bookmark API
* How to handle exceptions using problem-spring-web library
* Implementing integration test for create bookmark API

🚀 SpringBoot + Kubernetes Series Playlist

Рекомендации по теме
Комментарии
Автор

Once again excellent content Siva

When I run the test it's failing for me, I think it's something to do with MockHttpServletResponse
MockHttpServletResponse:
Status = 400
Error message = null
Headers =
Content type = application/problem+json
Body = {"title":"Bad Request", "status":400, "detail":"JSON parse error: Unexpected character ('}' (code 125)): was expecting double-quote to start field name; nested exception is Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: line: 3, column: 2]"}
Forwarded URL = null
Redirected URL = null
Cookies = []

java.lang.AssertionError: No value at JSON path "$.type"

xmubeen