Package de.netallied.xsd2Cppsax.testsuite

Examples of de.netallied.xsd2Cppsax.testsuite.TestSuiteType


     *            Path to input file.
     */
    public void run(String xmlFile) {
        try {
            TestSuiteDocument testSuiteDoc = TestSuiteDocument.Factory.parse(new File(xmlFile));
            TestSuiteType testSuite = testSuiteDoc.getTestSuite();
            outDir = testSuite.getOutDir();
            if (outDir == null || outDir.length() == 0) {
                System.err.println("invalid output dir!");
                return;
            }

            // setup output dir and files.
            File outDirFile = new File(outDir);
            outDirFile.mkdirs();
            clearOutputDir(outDirFile);
            logFile = new PrintStream(outDir + "/" + LOG_FILE_NAME);
            summaryFile = new PrintStream(outDir + "/" + SUMMARY_FILE_NAME);

            // run tests
            for (TestType test : testSuite.getTestList()) {
                summaryFile.println();
                System.out.println();

                String config = test.getConfig();
                String input = test.getInput();
View Full Code Here

TOP

Related Classes of de.netallied.xsd2Cppsax.testsuite.TestSuiteType

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.