aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/src/test
diff options
context:
space:
mode:
authorFreddy Mallet <freddy.mallet@gmail.com>2011-04-24 00:42:00 +0200
committerFreddy Mallet <freddy.mallet@gmail.com>2011-04-24 00:42:00 +0200
commit06af298d5bc741fd45ade3045f98518db1f61357 (patch)
tree770e6e3e187e5535ca08e1402416f90881a1673c /sonar-markdown/src/test
parente9c89df95a32fae52406c4400a76a68121a1f3d9 (diff)
downloadsonarqube-06af298d5bc741fd45ade3045f98518db1f61357.tar.gz
sonarqube-06af298d5bc741fd45ade3045f98518db1f61357.zip
SONAR-2384 Add support for html list and fix javadoc by escaping html tags
Diffstat (limited to 'sonar-markdown/src/test')
-rw-r--r--sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
index 4054e9a97f6..9579828af9b 100644
--- a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
+++ b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
@@ -35,6 +35,11 @@ public class MarkdownEngineTest {
public void shouldDecorateEndOfLine() {
assertThat(MarkdownEngine.convertToHtml("1\r2\r\n3\n"), is("1<br/>2<br/>3<br/>"));
}
+
+ @Test
+ public void shouldDecorateList() {
+ assertThat(MarkdownEngine.convertToHtml(" * one\r* two\r\n* three\n * \n *five"), is("<ul><li>one</li>\r<li>two</li>\r\n<li>three</li>\n<li> </li>\n</ul> *five"));
+ }
@Test
public void shouldDecorateCode() {