Guest User

Untitled

a guest
Oct 29th, 2022
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. MockHttpServletRequest:
  2. HTTP Method = POST
  3. Request URI = /api/employees/
  4. Parameters = {}
  5. Headers = [Content-Type:"application/json;charset=UTF-8", Accept:"application/json", Content-Length:"74"]
  6. Body = {"email":"[email protected]","firstname":"firstname1","lastname":"lastname1"}
  7. Session Attrs = {}
  8.  
  9. Handler:
  10. Type = com.acme.app1.controllers.EmployeeController
  11. Method = com.acme.app1.controllers.EmployeeController#addEmployee(EmployeeDto)
  12.  
  13. Async:
  14. Async started = false
  15. Async result = null
  16.  
  17. Resolved Exception:
  18. Type = null
  19.  
  20. ModelAndView:
  21. View name = null
  22. View = null
  23. Model = null
  24.  
  25. FlashMap:
  26. Attributes = null
  27.  
  28. MockHttpServletResponse:
  29. Status = 200
  30. Error message = null
  31. Headers = []
  32. Content type = null
  33. Body =
  34. Forwarded URL = null
  35. Redirected URL = null
  36. Cookies = []
  37.  
  38. java.lang.AssertionError: Content type not set
  39.  
  40. at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:37)
  41. at org.springframework.test.util.AssertionErrors.assertTrue(AssertionErrors.java:70)
  42. at org.springframework.test.util.AssertionErrors.assertNotNull(AssertionErrors.java:106)
Advertisement
Add Comment
Please, Sign In to add comment