Polishing: replace spaces with tabs in doc examples

See gh-37
This commit is contained in:
Andy Wilkinson
2015-06-16 17:21:43 +01:00
parent 8307fb5428
commit 833f0eabb8
9 changed files with 29 additions and 29 deletions

View File

@@ -26,9 +26,9 @@ import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
public class Hypermedia {
private MockMvc mockMvc;
public void links() throws Exception {
// tag::links[]
this.mockMvc.perform(get("/").accept(MediaType.APPLICATION_JSON))
@@ -38,16 +38,16 @@ public class Hypermedia {
linkWithRel("bravo").description("Link to the bravo resource"))); // <3>
// end::links[]
}
public void explicitExtractor() throws Exception {
this.mockMvc.perform(get("/").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
//tag::explicit-extractor[]
.andDo(document("index").withLinks(halLinks(), // <1>
linkWithRel("alpha").description("Link to the alpha resource"),
linkWithRel("alpha").description("Link to the alpha resource"),
linkWithRel("bravo").description("Link to the bravo resource")));
// end::explicit-extractor[]
}
}