All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.smartcosmos.platform.test.TestCommandLineRunner Maven / Gradle / Ivy

Go to download

Easily packages a bunch of test utilities into a single area so you can add this module with a test scope and get them all.

The newest version!
package net.smartcosmos.platform.test;

import org.junit.runner.JUnitCore;

public final class TestCommandLineRunner
{

    /**
     * Utility class.
     */
    private TestCommandLineRunner()
    {
    }

    /**
     * 
     * This is a convenience class, since you cannot include default program arguments in the manifest file. If there
     * are no program arguments then it'll pass in the test class. We just call JUnit with the default test class,
     * otherwise it'll use the passed in arguments.
     * 
     * @param args
     *            arguments passed to application.
     */
    public static void main(String[] args)
    {
        if (args != null && args.length > 0)
        {
            JUnitCore.main(args);
        } else
        {
            JUnitCore.main(PopulateObjectsServer.class.getCanonicalName());
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy