Package batch.writer.relaxng

Source Code of batch.writer.relaxng.RELAXNGWriterTest

/*
* @(#)$Id: RELAXNGWriterTest.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.relaxng;

import junit.framework.TestSuite;
import batch.writer.RELAXNGTester;

/**
* tests the RELAXNGWriter with the multiple test directories.
*
* for use by automated test by ant.
*
* @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
*/
public class RELAXNGWriterTest {
    public static TestSuite suite() throws Exception {
        TestSuite s = new TestSuite();

        append(s, "RELAXBatchTestDir", "relax");
        append(s, "TREXBatchTestDir", "trex");
        append(s, "XSDBatchTestDir", "xsd");
        append(s, "DTDBatchTestDir", "dtd");
        return s;
    }

    private static void append(TestSuite s, String propName, String target) throws Exception {
        s.addTest(new RELAXNGTester().createFromProperty(target, propName));
    }
}
TOP

Related Classes of batch.writer.relaxng.RELAXNGWriterTest

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.