List of usage examples for org.springframework.restdocs.operation.preprocess LinkMaskingContentModifier LinkMaskingContentModifier
LinkMaskingContentModifier(String mask)
From source file:org.springframework.restdocs.operation.preprocess.LinkMaskingContentModifierTests.java
@Test public void maskCanBeCustomized() throws Exception { assertThat(/*from w w w .jav a 2 s . c om*/ new LinkMaskingContentModifier("custom").modifyContent(formattedAtomPayloadWithLinks(this.links), null), is(equalTo(formattedAtomPayloadWithLinks(new Link("a", "custom"), new Link("b", "custom"))))); }