Examples of AugmentationTest


Examples of org.apache.jdo.impl.enhancer.util.AugmentationTest

        if (debug)
            logger.debug("ImplementsPersistenceCapable.testOnePackage: " +
                         packageName + " classes " + classNames);
       
        PrintWriter out = new PrintWriter(System.out);
        final AugmentationTest test = new AugmentationTest(out, out);
        final String classpath = System.getProperty("java.class.path");
        final String jdoPropertiesFileName =
            packageName.replace ('.', '/') + "/jdoTest.properties"; //NOI18N       
        final String[] args = new String[classNames.size() + 6];
        int index = 0;
        // init arguments for AugmentationTest.run call
        // specify properties file
        args[index++] = "--properties";
        args[index++] = jdoPropertiesFileName;
        // specify jdo path to find the properties file
        args[index++] = "-j";
        args[index++] = classpath;
        // specify source path to find the classes
        args[index++] = "-s";
        args[index++] = classpath;
        // add class names
        for (java.util.Iterator i = classNames.iterator(); i.hasNext();) {
            args[index++] = (String)i.next();
        }
        if (debug)
            logger.debug ("Run AugmentationTest with args " + Arrays.asList(args));
        int errors = test.run(args);
        if (errors > 0) {
            fail(ASSERTION_FAILED,
                 "AugmentationTest with args " + Arrays.asList(args) +
                 " results in " + errors + " errors.");
        }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.util.AugmentationTest

        if (debug)
            logger.debug("ImplementsPersistenceCapable.testOnePackage: " +
                         packageName + " classes " + classNames);
       
        PrintWriter out = new PrintWriter(System.out);
        final AugmentationTest test = new AugmentationTest(out, out);
        final String classpath = System.getProperty("java.class.path");
        final String jdoPropertiesFileName =
            packageName.replace ('.', '/') + "/jdoTest.properties"; //NOI18N       
        final String[] args = new String[classNames.size() + 6];
        int index = 0;
        // init arguments for AugmentationTest.run call
        // specify properties file
        args[index++] = "--properties";
        args[index++] = jdoPropertiesFileName;
        // specify jdo path to find the properties file
        args[index++] = "-j";
        args[index++] = classpath;
        // specify source path to find the classes
        args[index++] = "-s";
        args[index++] = classpath;
        // add class names
        for (java.util.Iterator i = classNames.iterator(); i.hasNext();) {
            args[index++] = (String)i.next();
        }
        if (debug)
            logger.debug ("Run AugmentationTest with args " + Arrays.asList(args));
        int errors = test.run(args);
        if (errors > 0) {
            fail(ASSERTION_FAILED,
                 "AugmentationTest with args " + Arrays.asList(args) +
                 " results in " + errors + " errors.");
        }
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.