summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-10-18 17:46:22 -0400
committerJames Moger <james.moger@gitblit.com>2013-10-18 17:46:22 -0400
commit0365f6248d6aaa7c765ac63273c282d16161a623 (patch)
tree84b61897721c5bed58a8425b0ccb0c1e6ee7e254 /src/test/java
parent1feb04e5a907d06b2bf632395ba8d164931c0904 (diff)
downloadgitblit-0365f6248d6aaa7c765ac63273c282d16161a623.tar.gz
gitblit-0365f6248d6aaa7c765ac63273c282d16161a623.zip
Replaced MarkdownPapers with pegdown
Change-Id: I11eb50ba1ef0bef8ac47bf6f7b17e0f79ecd3f2d
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/gitblit/tests/MarkdownUtilsTest.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/test/java/com/gitblit/tests/MarkdownUtilsTest.java b/src/test/java/com/gitblit/tests/MarkdownUtilsTest.java
index cd7ca020..34583747 100644
--- a/src/test/java/com/gitblit/tests/MarkdownUtilsTest.java
+++ b/src/test/java/com/gitblit/tests/MarkdownUtilsTest.java
@@ -16,9 +16,6 @@
package com.gitblit.tests;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import java.text.ParseException;
import org.junit.Test;
@@ -28,8 +25,8 @@ public class MarkdownUtilsTest {
@Test
public void testMarkdown() throws Exception {
- assertEquals("<h1> H1</h1>", MarkdownUtils.transformMarkdown("# H1"));
- assertEquals("<h2> H2</h2>", MarkdownUtils.transformMarkdown("## H2"));
+ assertEquals("<h1>H1</h1>", MarkdownUtils.transformMarkdown("# H1"));
+ assertEquals("<h2>H2</h2>", MarkdownUtils.transformMarkdown("## H2"));
assertEquals("<p><strong>THIS</strong> is a test</p>",
MarkdownUtils.transformMarkdown("**THIS** is a test"));
assertEquals("<p>** THIS ** is a test</p>",
@@ -43,12 +40,5 @@ public class MarkdownUtilsTest {
MarkdownUtils.transformMarkdown("<table><tr><td>test</td></tr></table>"));
assertEquals("<table><tr><td>&lt;test&gt;</td></tr></table>",
MarkdownUtils.transformMarkdown("<table><tr><td>&lt;test&gt;</td></tr></table>"));
-
- try {
- MarkdownUtils.transformMarkdown((String) null);
- assertTrue(false);
- } catch (ParseException p) {
- assertTrue(p != null);
- }
}
} \ No newline at end of file