Remove setting  again to avoid JRuby warnings
MODIFY
asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb
asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb
-# Set the global variable VERBOSE to true to get invalid refs into the log
-$VERBOSE=true
-
module AsciidoctorJ
include_package 'org.asciidoctor'
module Extensions

MODIFY
asciidoctorj-core/src/test/java/org/asciidoctor/WhenAsciidoctorLogsToConsole.java
asciidoctorj-core/src/test/java/org/asciidoctor/WhenAsciidoctorLogsToConsole.java
@@ -12,6 +12,7 @@ import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
@@ -48,6 +49,7 @@ public class WhenAsciidoctorLogsToConsole {
@Before
public void before() {
asciidoctor = JRubyAsciidoctor.create();
+ TestLogHandlerService.clear();
}
@After
@@ -127,6 +129,7 @@ public class WhenAsciidoctorLogsToConsole {
}
@Test
+ @Ignore("Until logging of invalid refs is enabled by default")
public void shouldLogInvalidRefs() throws Exception {
final List<LogRecord> logRecords = new ArrayList<>();

MODIFY
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionGroupIsRegistered.java
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionGroupIsRegistered.java
@@ -51,7 +51,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(Arquillian.class)
public class WhenJavaExtensionGroupIsRegistered {
- public static final String ASCIIDOCTORCLASS_PREFIX = "# Set the global variable VERBOSE to true to get invalid refs into the log";
+ public static final String ASCIIDOCTORCLASS_PREFIX = "module AsciidoctorJ include_package 'org.asciidoctor'";
@ArquillianResource
private ClasspathResources classpath;

MODIFY
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionIsRegistered.java
asciidoctorj-core/src/test/java/org/asciidoctor/extension/WhenJavaExtensionIsRegistered.java
@@ -51,7 +51,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(Arquillian.class)
public class WhenJavaExtensionIsRegistered {
- public static final String ASCIIDOCTORCLASS_PREFIX = "# Set the global variable VERBOSE to true to get invalid refs into the log";
+ public static final String ASCIIDOCTORCLASS_PREFIX = "module AsciidoctorJ include_package 'org.asciidoctor'";
@ArquillianResource
private ClasspathResources classpath;

Remove setting  again to avoid JRuby warnings