Junit testing with Spring

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.

Continue reading


5 minutes with – Jersey Producers

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.

Continue reading