msv.rngconverter.test.batch.writer.relaxng.RELAXNGWriterTest Maven / Gradle / Ivy
/*
* @(#)$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 Kohsuke KAWAGUCHI
*/
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));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy