Package org.apache.maven.doxia.module.twiki

Examples of org.apache.maven.doxia.module.twiki.TWikiParser


    public void testSectionTitle()
        throws Exception
    {
        final ByLineSource source = new ByLineReaderSource( new StringReader( "---++ Test\n hello world" ) );

        final TWikiParser parser = new TWikiParser();

        assertEquals( "Test", parser.getTitle( parser.parse( source ), source ) );
    }
View Full Code Here


        throws Exception
    {
        final ByLineSource source =
            new NamedByLineSource( new ByLineReaderSource( new StringReader( "hello world" ) ), "testpage" );

        final TWikiParser parser = new TWikiParser();

        assertEquals( "testpage", parser.getTitle( parser.parse( source ), source ) );
    }
View Full Code Here

        throws Exception
    {
        final ByLineSource source =
            new NamedByLineSource( new ByLineReaderSource( new StringReader( "hello world" ) ), "testpage.twiki" );

        final TWikiParser parser = new TWikiParser();

        assertEquals( "testpage", parser.getTitle( parser.parse( source ), source ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.doxia.module.twiki.TWikiParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.