From 63be118ed0b877edd58f474c630f589dfcae2a16 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 18 Jul 2022 16:01:20 +0100 Subject: [PATCH] Reinstate missing section headings in the reference documentation Closes gh-833 --- docs/src/docs/asciidoc/configuration.adoc | 3 ++- docs/src/docs/asciidoc/customizing-requests-and-responses.adoc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/docs/asciidoc/configuration.adoc b/docs/src/docs/asciidoc/configuration.adoc index ee8e4adf..24c23a47 100644 --- a/docs/src/docs/asciidoc/configuration.adoc +++ b/docs/src/docs/asciidoc/configuration.adoc @@ -127,7 +127,6 @@ include::{examples-dir}/com/example/webtestclient/CustomFormat.java[tags=custom- ---- include::{examples-dir}/com/example/restassured/CustomFormat.java[tags=custom-format] ---- -==== @@ -195,3 +194,5 @@ include::{examples-dir}/com/example/restassured/CustomDefaultOperationPreprocess ---- <1> Apply a request preprocessor that removes the header named `Foo`. <2> Apply a response preprocessor that pretty prints its content. + + diff --git a/docs/src/docs/asciidoc/customizing-requests-and-responses.adoc b/docs/src/docs/asciidoc/customizing-requests-and-responses.adoc index f267612f..59177d3d 100644 --- a/docs/src/docs/asciidoc/customizing-requests-and-responses.adoc +++ b/docs/src/docs/asciidoc/customizing-requests-and-responses.adoc @@ -24,13 +24,13 @@ include::{examples-dir}/com/example/webtestclient/PerTestPreprocessing.java[tags <1> Apply a request preprocessor that removes the header named `Foo`. <2> Apply a response preprocessor that pretty prints its content. +[source,java,indent=0,role="secondary"] .REST Assured ---- include::{examples-dir}/com/example/restassured/PerTestPreprocessing.java[tags=preprocessing] ---- <1> Apply a request preprocessor that removes the header named `Foo`. <2> Apply a response preprocessor that pretty prints its content. -==== Alternatively, you may want to apply the same preprocessors to every test. You can do so by using the `RestDocumentationConfigurer` API in your `@Before` method to configure the preprocessors.