Package org.apache.maven.surefire.util

Examples of org.apache.maven.surefire.util.DefaultScanResult


        // Stuff that should have been final
        setupStuff();

        if ( verifyParameters() && !hasExecutedBefore() )
        {
            DefaultScanResult scan = scanForTestClasses();
            if ( !isValidSuiteXmlFileConfig() && scan.isEmpty() )
            {
                if ( getEffectiveFailIfNoTests() )
                {
                    throw new MojoFailureException(
                        "No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.)" );
View Full Code Here


        toolchain = getToolchain();
    }

    private DefaultScanResult scanForTestClasses()
    {
        DefaultScanResult scan = scanDirectories();
        DefaultScanResult scanDeps = scanDependencies();
        return scan.append( scanDeps );
    }
View Full Code Here

            catch ( IOException e )
            {
                throw new MojoExecutionException( "Could not scan dependency " + artifact.toString(), e );
            }
        }
        return new DefaultScanResult( found );
    }
View Full Code Here

                {
                    result.add( convertToJavaClassName( test ) );
                }
            }
        }
        return new DefaultScanResult( result );
    }
View Full Code Here

        // Stuff that should have been final
        setupStuff();

        if ( verifyParameters() && !hasExecutedBefore() )
        {
            DefaultScanResult scan = scanForTestClasses();
            if ( !isValidSuiteXmlFileConfig() && scan.isEmpty() )
            {
                if ( getEffectiveFailIfNoTests() )
                {
                    throw new MojoFailureException(
                        "No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.)" );
View Full Code Here

        toolchain = getToolchain();
    }

    private DefaultScanResult scanForTestClasses()
    {
        DefaultScanResult scan = scanDirectories();
        DefaultScanResult scanDeps = scanDependencies();
        return scan.append( scanDeps );
    }
View Full Code Here

        // Stuff that should have been final
        setupStuff();

        if ( verifyParameters() && !hasExecutedBefore() )
        {
            DefaultScanResult scan = scanDirectories();
            if ( !isValidSuiteXmlFileConfig() && scan.isEmpty() )
            {
                if ( getEffectiveFailIfNoTests() )
                {
                    throw new MojoFailureException(
                        "No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.)" );
View Full Code Here

        // Stuff that should have been final
        setupStuff();

        if ( verifyParameters() && !hasExecutedBefore() )
        {
            DefaultScanResult scan = scanForTestClasses();
            if ( !isValidSuiteXmlFileConfig() && scan.isEmpty() )
            {
                if ( getEffectiveFailIfNoTests() )
                {
                    throw new MojoFailureException(
                        "No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.)" );
View Full Code Here

        toolchain = getToolchain();
    }

    private DefaultScanResult scanForTestClasses()
    {
        DefaultScanResult scan = scanDirectories();
        DefaultScanResult scanDeps = scanDependencies();
        return scan.append( scanDeps );
    }
View Full Code Here

      catch (IOException e)
      {
        throw new MojoExecutionException("Could not scan dependency " + artifact.toString(), e);
      }
    }
    return new DefaultScanResult(found);
  }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.util.DefaultScanResult

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.