Testing a REST Service with multiple Media Types/representations.
Baeldung Author
Eugen Paraschiv
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 for REST with Spring
ETags with the Spring – ShallowEtagHeaderFilter, integration testing of the REST API, and consumption scenarios with curl.
REST Pagination in Spring
Pagination in a Spring REST Service – URI structure and best practice, Page as Resource vs Page as Representation.
The DAO with Spring and Hibernate
Filed under Spring Persistence
The DAO Layer with Spring 3 and Hibernate – focuses on Transaction Management, Hibernate Session management, Spring template best practices and common pitfalls.
Basic and Digest Authentication for a REST Service with Spring Security
Filed under REST, Spring Security
How to Set Up and Configure both Basic and Digest Authentication for the same REST Service, using Spring Security.
HATEOAS for a Spring REST Service
Implementation of HATEOAS and Discoverability for a Spring REST API.
REST API Discoverability and HATEOAS
HATEOAS and Discoverability of a REST Service – driven by tests.
Integration Testing with the Maven Cargo plugin
Set up Integration testing with the Maven Cargo and the cargo-maven2-plugin (maven-cargo-plugin).
Test a REST API with Java
How to test a REST Service with Java – integration testing using the Apache Http Client.
Avoid brittle tests for the Service layer
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.