Examples of WellformednessCheckingSink


Examples of org.apache.maven.doxia.sink.WellformednessCheckingSink

     * @throws ParseException if the test document cannot be parsed.
     */
    public final void testParser()
        throws IOException, ParseException
    {
        WellformednessCheckingSink sink = new WellformednessCheckingSink();

        Reader reader = null;
        try
        {
            reader = getTestReader( "test", outputExtension() );

            createParser().parse( reader, sink );

            assertTrue( "Parser output not well-formed, last offending element: "
                + sink.getOffender(), sink.isWellformed() );
        }
        finally
        {
            IOUtil.close( reader );
        }
View Full Code Here

Examples of org.apache.maven.doxia.sink.WellformednessCheckingSink

     * @throws ParseException if the test document cannot be parsed.
     */
    public final void testParser()
        throws IOException, ParseException
    {
        WellformednessCheckingSink sink = new WellformednessCheckingSink();

        Reader reader = null;
        try
        {
            reader = getTestReader( "test", outputExtension() );

            createParser().parse( reader, sink );

            assertTrue( "Parser output not well-formed, last offending element: "
                + sink.getOffender(), sink.isWellformed() );
        }
        finally
        {
            IOUtil.close( reader );
        }
View Full Code Here

Examples of org.apache.maven.doxia.sink.WellformednessCheckingSink

     * @throws ParseException if the test document cannot be parsed.
     */
    public final void testParser()
        throws IOException, ParseException
    {
        WellformednessCheckingSink sink = new WellformednessCheckingSink();

        Reader reader = null;
        try
        {
            reader = getTestReader( "test", outputExtension() );

            createParser().parse( reader, sink );

            assertTrue( "Parser output not well-formed, last offending element: "
                + sink.getOffender(), sink.isWellformed() );
        }
        finally
        {
            IOUtil.close( reader );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.