Example usage for org.springframework.restdocs.operation.preprocess LinkMaskingContentModifier LinkMaskingContentModifier

List of usage examples for org.springframework.restdocs.operation.preprocess LinkMaskingContentModifier LinkMaskingContentModifier

Introduction

In this page you can find the example usage for org.springframework.restdocs.operation.preprocess LinkMaskingContentModifier LinkMaskingContentModifier.

Prototype

LinkMaskingContentModifier(String mask) 

Source Link

Usage

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