This is the third of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. This article will focus on the security configuration using Spring Security 3.1, assuming some understanding of Spring Security basics and focusing on the specifics of securing the [...]
Building a RESTful Web Service with Spring 3.1 and Java based Configuration, part 2
This is the second of a series of articles about setting up a RESTful web service using Spring 3.1 with Java based configuration. This article will focus on setting up REST in Spring, the Controller and HTTP response codes, configuration of payload marshalling and content negotiation.
Bootstrapping a web application with Spring 3.1 and Java based Configuration, part 1
This is the first of a series of articles about setting up a RESTfull web application using Spring 3.1 with Java based configuration. The article will focus on bootstrapping the web application, discussing how to make the jump from XML to Java without having to completely migrate the entire XML configuration.
How to set up Integration Testing with the Maven Cargo plugin
A very common need in the lifecycle of a project is setting up integration testing. Luckily, Maven has built-in support for this exact scenario, with the following phases of the default build lifecycle (from the Maven documentation):
Introduction to Java integration testing for a RESTful API
This post will focus on basic principles and mechanics of writing Java integration tests for a RESTful API (with a JSON payload). The goal is to provide an introduction to the technologies and to write some tests for basic correctness. The examples will consume the latest version of the GitHub REST API. For an internal [...]
How to avoid brittle tests when testing the service layer
There are many ways to test the service layer of an application. The goal here is to show how to unit test this layer in isolation, by mocking out the interactions with the database entirely. This example will use Spring 3 for the dependency injection, JUnit, Hamcrest and Mockito for testing, but the technologies can [...]
Popular Posts
Archives
- April 2012 (1)
- March 2012 (1)
- February 2012 (1)
- January 2012 (2)
- December 2011 (5)
- November 2011 (3)
- October 2011 (6)
416 Followers Follow
343 Subscribers RSS FEED