Testing a REST Service with multiple Media Types/representations.
I’m a software engineer with a passion for REST, TDD and clean code, Web Security and Data Mining. Baeldung is about all of these and more.
Here's what I've written (so far):
ETags with the Spring – ShallowEtagHeaderFilter, integration testing of the REST API, and consumption scenarios with curl.
Pagination in a Spring REST Service – URI structure and best practice, Page as Resource vs Page as Representation.
The DAO Layer with Spring 3 and Hibernate – focuses on Transaction Management, Hibernate Session management, Spring template best practices and common pitfalls.
How to Set Up and Configure both Basic and Digest Authentication for the same REST Service, using Spring Security.
Implementation of HATEOAS and Discoverability for a Spring REST API.
HATEOAS and Discoverability of a REST Service – driven by tests.
Set up Integration testing with the Maven Cargo and the cargo-maven2-plugin (maven-cargo-plugin).
How to test a REST Service with Java – integration testing using the Apache Http Client.
How to avoid brittle and inflexible tests for the Service Layer of a Spring web app – mock out the interactions with the database, using JUnit, Mockito and Hamcrest.