Break the package cycle caused by the introduction of SnippetFormat

This commit is contained in:
Andy Wilkinson
2016-02-08 10:56:12 +00:00
parent c0fac14fdf
commit cb9e10bf5a
94 changed files with 273 additions and 244 deletions

View File

@@ -19,7 +19,7 @@ package com.example.restassured;
import org.junit.Before;
import org.junit.Rule;
import org.springframework.restdocs.RestDocumentation;
import org.springframework.restdocs.snippet.SnippetFormats;
import org.springframework.restdocs.templates.TemplateFormats;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.specification.RequestSpecification;
@@ -38,7 +38,7 @@ public class CustomFormat {
// tag::custom-format[]
this.spec = new RequestSpecBuilder()
.addFilter(documentationConfiguration(this.restDocumentation)
.snippets().withFormat(SnippetFormats.markdown()))
.snippets().withTemplateFormat(TemplateFormats.markdown()))
.build();
// end::custom-format[]
}