Package org.apache.maven.surefire.report

Examples of org.apache.maven.surefire.report.ConsoleLogger


    public RunResult invoke( Object forkTestSet )
        throws TestSetFailedException, ReporterException
    {
        final ReporterFactory reporterFactory = providerParameters.getReporterFactory();

        final ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();

        Filter filter = jUnit48Reflector.isJUnit48Available() ? createJUnit48Filter() : null;

        if ( testsToRun == null )
        {
View Full Code Here


    public void surefireIsConfused_ByMultipleIgnore_OnClassLevel()
        throws Exception
    {
        ReporterFactory reporterFactory = DefaultReporterFactory.defaultNoXml();
        BaseProviderFactory providerParameters = new BaseProviderFactory( reporterFactory, true );
        ConsoleLogger consoleLogger = new DefaultConsoleReporter( System.out );

        providerParameters.setReporterConfiguration( new ReporterConfiguration( new File( "" ), false ) );
        Properties junitProps = new Properties();
        junitProps.put( ProviderParameterNames.PARALLEL_PROP, "none" );
View Full Code Here

    public void testConsole()
        throws ReporterException, IOException
    {
        final StandardTestRun standardTestRun = new StandardTestRun();
        ConsoleLogger directConsoleReporter = (ConsoleLogger) standardTestRun.run();
        directConsoleReporter.info( "HeyYou" );
        standardTestRun.assertExpected( MockReporter.CONSOLE_OUTPUT, "HeyYou" );
    }
View Full Code Here

    public RunResult invoke( Object forkTestSet )
        throws TestSetFailedException
    {
        final ReporterFactory reporterFactory = providerParameters.getReporterFactory();

        final ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();

        Filter filter = jUnit48Reflector.isJUnit48Available() ? createJUnit48Filter() : null;

        if ( testsToRun == null )
        {
View Full Code Here

    {
        final String message = jUnitCoreParameters.toString() + "\n";

        final ReporterFactory reporterFactory = providerParameters.getReporterFactory();

        final ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();
        consoleLogger.info( message );

        Filter filter = jUnit48Reflector.isJUnit48Available() ? createJUnit48Filter() : null;

        if ( testsToRun == null )
        {
View Full Code Here

    public void surefireIsConfused_ByMultipleIgnore_OnClassLevel()
        throws Exception
    {
        ReporterFactory reporterFactory = DefaultReporterFactory.defaultNoXml();
        BaseProviderFactory providerParameters = new BaseProviderFactory( reporterFactory, true );
        ConsoleLogger consoleLogger = new DefaultConsoleReporter( System.out );

        providerParameters.setReporterConfiguration( new ReporterConfiguration( new File( "" ), false ) );
        Properties junitProps = new Properties();
        junitProps.put( ProviderParameterNames.PARALLEL_PROP, "none" );
View Full Code Here

    {
        final String message = jUnitCoreParameters.toString() + "\n";

        final ReporterFactory reporterFactory = providerParameters.getReporterFactory();

        final ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();
        consoleLogger.info( message );

        Filter filter = jUnit48Reflector.isJUnit48Available() ? createJUnit48Filter() : null;

        if ( testsToRun == null )
        {
View Full Code Here

      return r;
    }
    ReporterFactory reporterFactory = providerParameters
        .getReporterFactory();

    ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();
    RunListener rl = reporterFactory.createReporter();

    if (!(forkTestSet instanceof Class)) {
      throw new TestSetFailedException(
          "Unexpected error. Received parameter is not a class");
View Full Code Here

            return r;
        }
        ReporterFactory reporterFactory = providerParameters
                .getReporterFactory();

        ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();
        RunListener rl = reporterFactory.createReporter();

        if (!(forkTestSet instanceof Class)) {
            throw new TestSetFailedException(
                    "Unexpected error. Received parameter is not a class");
View Full Code Here

      throws TestSetFailedException, ReporterException
  {
    final String message = "Concurrency config is " + jUnitCoreParameters.toString() + "\n";
    final ReporterFactory reporterFactory = providerParameters.getReporterFactory();

    final ConsoleLogger consoleLogger = providerParameters.getConsoleLogger();
    consoleLogger.info( message );

    Filter filter = jUnit48Reflector.isJUnit48Available() ? createJUnit48Filter() : null;

    if ( testsToRun == null )
    {
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.report.ConsoleLogger

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.