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.restdocs.payload.FieldType;
import org.springframework.test.web.servlet.MockMvc;
public class Payload {
private MockMvc mockMvc;
public void response() throws Exception {
// tag::response[]
this.mockMvc.perform(get("/user/5").accept(MediaType.APPLICATION_JSON))
@@ -38,7 +38,7 @@ private MockMvc mockMvc;
fieldWithPath("contact.email").description("The user's email address"))); // <3>
// end::response[]
}
public void explicitType() throws Exception {
this.mockMvc.perform(get("/user/5").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())