Example usage for org.springframework.restdocs.hypermedia Link Link

List of usage examples for org.springframework.restdocs.hypermedia Link Link

Introduction

In this page you can find the example usage for org.springframework.restdocs.hypermedia Link Link.

Prototype

public Link(String rel, String href) 

Source Link

Document

Creates a new Link with the given rel and href .

Usage

From source file:org.springframework.restdocs.operation.preprocess.LinkMaskingContentModifierTests.java

@Test
public void maskCanBeCustomized() throws Exception {
    assertThat(//w w  w  .  j  av a2s .c o m
            new LinkMaskingContentModifier("custom").modifyContent(formattedAtomPayloadWithLinks(this.links),
                    null),
            is(equalTo(formattedAtomPayloadWithLinks(new Link("a", "custom"), new Link("b", "custom")))));
}