Package org.jnode.test.framework

Examples of org.jnode.test.framework.TestManager


    /**
     * Execute this command
     */
    public void execute() {
        TestManager mgr = TestManager.getInstance();
        if (FLAG_LIST.isSet()) {
            PrintWriter out = getOutput().getPrintWriter();
            for (Class<? extends Test> test : mgr.getTests()) {
                out.print(test.getName() + " :");
                for (String category : mgr.getCategories(test)) {
                    out.print(" ");
                    out.print(category);
                }
                out.println();
            }
        } else if (FLAG_RUN.isSet()) {
            String[] categories = ARG_CATEGORY.getValues();
            if (categories == null) {
                categories = new String[0];
            }
            TestSuite suite = mgr.getTestSuite(Arrays.asList(categories));
            junit.textui.TestRunner.run(suite);
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.test.framework.TestManager

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.