my dog learned polymorphism*
The moose likes Web Services and the fly likes Problem to test a rest service using JUNIT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem to test a rest service using JUNIT" Watch "Problem to test a rest service using JUNIT" New topic
Author

Problem to test a rest service using JUNIT

Roopesh Rana
Greenhorn

Joined: Sep 03, 2012
Posts: 17
Hi folks,

I write a rest service to modify some a record in database. Now I need to prepare Junit for that service.

Method is




I need to test above methos through JUNIT


JUNIT is :



Exception is

Resolved Exception:
Type = org.springframework.http.converter.HttpMessageNotReadableException


stacktrace



NOTE : If anybody have an idea how we can pass XML request instedof JOSN please let me know.
Roopesh Rana
Greenhorn

Joined: Sep 03, 2012
Posts: 17
Any one have idea about it ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem to test a rest service using JUNIT