bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

error in CommonSyntaxParser #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
    @Test
    public void testBug1() throws IOException, WikiParserException {
        String in = "The link can also be a direct URL starting 
with {{http:}}, {{ftp:}}, {{mailto:}}, {{https:}}, or {{news:}}, in which 
case the link points to an external entity. For example, to point at the 
java.sun.com home page, use {{[[http://java.sun.com]}}, which becomes 
[http://java.sun.com/] or {{[[Java home page|http://java.sun.com]}}, which 
becomes [Java home page|http://java.sun.com].";
        IWikiParser wikiParser = new CommonWikiParser();

        IWemListener listener = new PrintListener(new 
NullPrinter());
        wikiParser.parse(new StringReader(in), listener);
    }

    class NullPrinter implements IWikiPrinter {

        public void print(String str) {
            // TODO Auto-generated method stub

        }

        public void println(String str) {
            // TODO Auto-generated method stub

        }

    }

Original issue reported on code.google.com by max.at.x...@gmail.com on 19 Dec 2007 at 12:29

GoogleCodeExporter commented 8 years ago
Commited a test at the end of CommonWikiParserTest

Original comment by max.at.x...@gmail.com on 19 Dec 2007 at 12:36

GoogleCodeExporter commented 8 years ago

Original comment by mikhail....@gmail.com on 19 Dec 2007 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by mikhail....@gmail.com on 19 Dec 2007 at 5:04