01: package com.ecyrd.jspwiki.parser;
02:
03: import junit.framework.Test;
04: import junit.framework.TestCase;
05: import junit.framework.TestSuite;
06:
07: public class MarkupParserTest extends TestCase {
08:
09: public static void main(String[] args) {
10: junit.textui.TestRunner.run(MarkupParserTest.class);
11: }
12:
13: protected void setUp() throws Exception {
14: super .setUp();
15: }
16:
17: protected void tearDown() throws Exception {
18: super .tearDown();
19: }
20:
21: public void testCleanLink1() {
22: assertEquals("--CleanLink--", MarkupParser
23: .cleanLink("--CleanLink--"));
24: }
25:
26: public void testCleanLink2() {
27: assertEquals("CleanLink", MarkupParser
28: .cleanLink("??CleanLink??"));
29: }
30:
31: public void testCleanLink3() {
32: assertEquals("Clean (link)", MarkupParser
33: .cleanLink("Clean (link)"));
34: }
35:
36: public static Test suite() {
37: TestSuite suite = new TestSuite(MarkupParserTest.class);
38:
39: return suite;
40: }
41: }
|