Package batch.writer

Source Code of batch.writer.RELAXNGTester

/*
* @(#)$Id: RELAXNGTester.java 1557 2003-05-14 18:39:15Z kk122374 $
*
* Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the proprietary information of Sun Microsystems, Inc. 
* Use is subject to license terms.
*
*/
package batch.writer;

import batch.BatchTester;
import batch.driver.IValidatorImplForRNG;
import batch.model.TestReader;

import com.sun.msv.writer.GrammarWriter;

/**
* tests RELAX NG converter.
*
* @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
*/
public class RELAXNGTester extends BatchTester {

    protected TestReader createReader() {
        return new TestReader( new TestBuilderImpl(validator,
            new IValidatorImplForRNG(strict) ) {
            protected GrammarWriter getWriter() {
            return new com.sun.msv.writer.relaxng.RELAXNGWriter();
            }
        } );
    }
    public static void main(String[] av) throws Exception {
        new RELAXNGTester().run(av);
    }

    protected void usage() {
        System.out.println(
            "usage "
                + this.getClass().getName()
                + " (relax|trex|xsd|dtd|rng) [-strict] <test case directory>\n"
                + "  tests RELAX NG converter by\n"
                + "  1. converting schema files of the specified type into RELAX NG\n"
                + "  2. then parse it by RELAX NG parser\n"
                + "  3. then use the test instances to ensure the correctness\n");
    }
}
TOP

Related Classes of batch.writer.RELAXNGTester

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.