summaryrefslogtreecommitdiffstats
path: root/sonar-markdown/src/test/java/org/sonar
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-09 12:28:47 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-09 15:15:52 +0200
commit2dfa1e9aa50829fd4d912ece7c38fc66787c233c (patch)
tree0280eaa883f7768bb7653571ba469a3a9395e9fd /sonar-markdown/src/test/java/org/sonar
parent008dcd97794317f200949b52fa1b5a6dd5fbb04d (diff)
downloadsonarqube-2dfa1e9aa50829fd4d912ece7c38fc66787c233c.tar.gz
sonarqube-2dfa1e9aa50829fd4d912ece7c38fc66787c233c.zip
SONAR-4681 Add support for blockquote
Diffstat (limited to 'sonar-markdown/src/test/java/org/sonar')
-rw-r--r--sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
index d2e78c4d4d0..0f96cf2a59f 100644
--- a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
+++ b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
@@ -58,6 +58,11 @@ public class MarkdownTest {
.isEqualTo("<h1>Top\r</h1><h2>Sub\r\n</h2><h3>Subsub\n</h3><h4></h4> 1.five");
}
+ @Test
+ public void shouldDecorateBlockquote() {
+ assertThat(Markdown.convertToHtml("> Yesterday it worked\n> Today it is not working\r\n> Software is like that\r"))
+ .isEqualTo("<blockquote>Yesterday it worked<br/>\nToday it is not working<br/>\r\nSoftware is like that<br/>\r</blockquote>");
+ }
@Test
public void shouldDecorateMixedOrderedAndUnorderedList() {