List of usage examples for org.springframework.hateoas Link toString
@Override
public String toString()
From source file:org.springsource.restbucks.GeneralMvcIntegrationTest.java
/** * @see https://github.com/SpringSource/spring-hateoas/issues/54 *//*from w ww . j a v a2s .c o m*/ @Test public void handsLinkHeadersIntoControllerMethod() throws Exception { Link link = new Link("/something"); mvc.perform(get("/links").header("Link", link.toString())). // andExpect(header().string("Link", link.toString())). // andExpect(content().string("Result")); }