SpringSource/spring-hateoas — pull request #12 by rgladwell (2012-09-12 10:12:07+00:00)
Title: LinkBuilder and LinkBuilderFactory interfaces extracted

LinkBuilder and LinkBuilderFactory interfaces extracted from ControllerLinkBuilder for easier mocking and so that alternative implementations (such as for CXF) can be injected.

Due to the fact that the ControllerLinkBuilder .link* static methods depends on being inside a Servlet HTTP session, these fail during unit testing. Now the LinkBuilderFactory can be mocked so that unit tests can run without requiring an HTTP request.