jQuery in Action, 3rd edition
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


Win a copy of Head First Android this week in the Android forum!
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: 29
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: 29
Any one have idea about it ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem to test a rest service using JUNIT
 
It's not a secret anymore!