Merge "Make the basicTextFormattingWorks() test more strict" into stable-2.12
diff --git a/src/test/java/com/googlesource/gerrit/plugins/x-docs/AsciidoctorFormatterTest.java b/src/test/java/com/googlesource/gerrit/plugins/x-docs/AsciidoctorFormatterTest.java
index f4b5084..8406871 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/x-docs/AsciidoctorFormatterTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/x-docs/AsciidoctorFormatterTest.java
@@ -72,7 +72,7 @@
   @Test
   public void basicTextFormattingWorks() throws IOException {
     String raw = "_italic_ *bold* `monospace`";
-    String formatted = "<em>italic</em> <strong>bold</strong> <code>monospace</code>";
-    assertEquals(1, StringUtils.countMatches(formatter.format(null, null, null, null, cfg, raw), formatted));
+    String formatted = "<div class=\"paragraph\">\n<p><em>italic</em> <strong>bold</strong> <code>monospace</code></p>\n</div>";
+    assertEquals(formatted, formatter.format(null, null, null, null, cfg, raw));
   }
 }