mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/IntegrationTestRunner.java
public void runClass(final File reportDir, final boolean printStackTrace, final String[] classNames) 
            throws IOException, IllegalArgumentException
    {
        m_LogService.log(LogService.LOG_INFO, "Running the following tests: " + Arrays.asList(classNames));
        for (String className : classNames)
        {
            boolean foundClass = false;
            
            for (Class<?> testClass : m_TestService.getAllTestClasses())
            {
                if (className.equalsIgnoreCase(testClass.getSimpleName()))
                {
                    XMLTestRunner.run(reportDir, m_Suffix, printStackTrace, testClass);
                    foundClass = true;
                    break;
                }
            }
            
            if (!foundClass)
            {
                throw new IllegalArgumentException("Test class " + className + " not found");
            }
        }
    }
/**
     * Run a particular test classes based on name (will pick from optional ones as well).
     * 
     * @param reportDir
     *      where to place test results
     * @param printStackTrace
     *      whether to print stack trace on failures
     * @param classNames
     *      List of simple class names of the test classes as returned by {@link Class#getSimpleName()}
     * @throws IOException
     *      if there is an using the {@code reportDir} path
     * @throws IllegalArgumentException
     *      if one of the class names is not a valid test class
     */
Run a particular test classes based on name (will pick from optional ones as well).


Run a particular test classes based on name ( will pick from optional ones as well ) .
public void runClass(final File reportDir, final boolean printStackTrace, final String[] classNames) 
            throws IOException, IllegalArgumentException
    {
        m_LogService.log(LogService.LOG_INFO, "Running the following tests: " + Arrays.asList(classNames));
        for (String className : classNames)
        {
            boolean foundClass = false;
            for (Class<?> testClass : m_TestService.getAllTestClasses())
            {
                if (className.equalsIgnoreCase(testClass.getSimpleName()))
                {
                    XMLTestRunner.run(reportDir, m_Suffix, printStackTrace, testClass);
                    foundClass = true;
                    break;
                }
            }
            if (!foundClass)
            {
                throw new IllegalArgumentException("Test class " + className + " not found");
            }
        }
    }
public void runClass ( final File reportDir , final boolean printStackTrace , final String [ ] classNames ) throws IOException , IllegalArgumentException { m_LogService . log ( LogService . LOG_INFO , "Running the following tests: " + Arrays . asList ( classNames ) ) ; for ( String className : classNames ) { boolean foundClass = false ; for ( Class < ? > testClass : m_TestService . getAllTestClasses ( ) ) { if ( className . equalsIgnoreCase ( testClass . getSimpleName ( ) ) ) { XMLTestRunner . run ( reportDir , m_Suffix , printStackTrace , testClass ) ; foundClass = true ; break ; } } if ( ! foundClass ) { throw new IllegalArgumentException ( "Test class " + className + " not found" ) ; } } }
Run a particular test classes based on name (will pick from optional ones as well).
Run a particular test classes based on name ( will pick from optional ones as well ) .