List of usage examples for org.springframework.restdocs.hypermedia Link Link
public Link(String rel, String href)
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"))))); }