Resolves Use the fluent API in test
MODIFY
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionIsRegistered.java
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionIsRegistered.java
@@ -464,11 +464,9 @@ public class WhenJavaExtensionIsRegistered {
@Test
public void a_treeprocessor_and_blockmacroprocessor_should_be_executed_in_document() {
-
- JavaExtensionRegistry javaExtensionRegistry = this.asciidoctor.javaExtensionRegistry();
-
- javaExtensionRegistry.treeprocessor(TerminalCommandTreeprocessor.class);
- javaExtensionRegistry.blockMacro("gist", GistMacro.class);
+ this.asciidoctor.javaExtensionRegistry()
+ .treeprocessor(TerminalCommandTreeprocessor.class)
+ .blockMacro("gist", GistMacro.class);
String content = asciidoctor.renderFile(
classpath.getResource("sample-with-terminal-command-and-gist-macro.ad"),

Resolves #487, Use the fluent API in test