Example usage for org.springframework.hateoas Link toString

List of usage examples for org.springframework.hateoas Link toString

Introduction

In this page you can find the example usage for org.springframework.hateoas Link toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

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"));
}