Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MockHttpServletRequest:
- HTTP Method = POST
- Request URI = /api/employees/
- Parameters = {}
- Headers = [Content-Type:"application/json;charset=UTF-8", Accept:"application/json", Content-Length:"74"]
- Body = {"email":"[email protected]","firstname":"firstname1","lastname":"lastname1"}
- Session Attrs = {}
- Handler:
- Type = com.acme.app1.controllers.EmployeeController
- Method = com.acme.app1.controllers.EmployeeController#addEmployee(EmployeeDto)
- Async:
- Async started = false
- Async result = null
- Resolved Exception:
- Type = null
- ModelAndView:
- View name = null
- View = null
- Model = null
- FlashMap:
- Attributes = null
- MockHttpServletResponse:
- Status = 200
- Error message = null
- Headers = []
- Content type = null
- Body =
- Forwarded URL = null
- Redirected URL = null
- Cookies = []
- java.lang.AssertionError: Content type not set
- at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:37)
- at org.springframework.test.util.AssertionErrors.assertTrue(AssertionErrors.java:70)
- at org.springframework.test.util.AssertionErrors.assertNotNull(AssertionErrors.java:106)
Advertisement
Add Comment
Please, Sign In to add comment