Fix duplicated code block in integrators guide docs
Fixes
MODIFY
asciidoctorj-documentation/src/test/java/org/asciidoctor/integrationguide/converter/TextConverterTest.java
asciidoctorj-documentation/src/test/java/org/asciidoctor/integrationguide/converter/TextConverterTest.java
@@ -59,7 +59,6 @@ public class TextConverterTest {
@Test
public void should_use_text_converter_for_conversion_registered_as_service_impl() throws Exception {
-
ClassLoader oldTCCL = Thread.currentThread().getContextClassLoader();
try {
@@ -68,20 +67,15 @@ public class TextConverterTest {
Thread.currentThread().setContextClassLoader(tccl);
Asciidoctor asciidoctor = Asciidoctor.Factory.create();
-//tag::include[]
File test_adoc = //...
-//end::include[]
classpathResources.getResource("textconvertertest.adoc");
-//tag::include[]
-
String result = asciidoctor.convertFile(
test_adoc,
OptionsBuilder.options()
- .backend("text") // <1>
+ .backend("text")
.toFile(false));
-//end::include[]
verifyResult(result);
} finally {
Thread.currentThread().setContextClassLoader(oldTCCL);

MODIFY
docs/integrator-guide.adoc
docs/integrator-guide.adoc
@@ -1713,14 +1713,6 @@ Finally the converter can be registered and used for conversion of AsciiDoc docu
.backend("text") // <2>
.toFile(false));
- File test_adoc = //...
-
- String result = asciidoctor.convertFile(
- test_adoc,
- OptionsBuilder.options()
- .backend("text") // <1>
- .toFile(false));
-
----
<1> Registers the converter class `TextConverter` for this Asciidoctor instance.
The given converter is responsible for converting to the target format `text` because the `@ConverterFor` annotation of the converter class defines this name.

Fix duplicated code block in integrators guide docs

Fixes #959