Testing code is an important step as writing code. Unfortunately this task is frequently put at last position, too near the project deadline and, for that reason, it stays unimplemented.
In this post I’m not going to argue about the project timeline but I’d like to discuss of how test the solution when not all the resource are available at the developer’s environment.
Have you ever tried to have to produce a multiple rappresentation of the same resources? I’m speaking about produce a common json and xml and, also, custom rappresentation like text/html which is not very common for data exchanging.
In this article I’d like to show you how produce multiple response format of Jersey resources. The type of response format will depend from resource extension request.
In this post I’ll speak about how building a RESTful service using Spring MVC and its *ViewResolver classes.
I’m going to build a service with the response informations in Xml and Json format using very few code line