Package br.eti.kinoshita.tap4j.model

Examples of br.eti.kinoshita.tap4j.model.Plan


  {
    Integer initialTest = Integer.parseInt( matcher.group(1) );
    Integer lastTest = Integer.parseInt( matcher.group(3) );
   
   
    Plan plan = null;
    plan = new Plan( initialTest, lastTest );
   
    String skipToken = matcher.group(4);
    if ( skipToken != null )
    {
      String reason = matcher.group( 5 );
      final SkipPlan skip = new SkipPlan( reason );
      plan.setSkip(skip);
    }
   
    String commentToken = matcher.group( 6 );
    if ( commentToken != null )
    {
      String text = matcher.group ( 7 );
      final Comment comment = new Comment( text );
      plan.setComment( comment );
    }
   
    this.plan = plan;
  }
View Full Code Here


     
      Set<Class<?>> testResultsSet = this.getTestResultsSetPerSuite(suite);
     
      Integer totalTestResults = this.getTotalTestResultsByTestSuite(testResultsSet);

      testSet.setPlan( new Plan( totalTestResults ) );
     
      for( Class<?> testResultClass : testResultsSet )
      {
        List<ITestResult> testResults = testResultsPerSuite.get( testResultClass );
       
View Full Code Here

            {
              final Integer totalTestResultsByGroup = groupTestResults.size();
             
              testSet = new TestSet();
               
              testSet.setPlan( new Plan( totalTestResultsByGroup ) );
             
              for ( ITestResult testResult : groupTestResults )
              {
                TestResult tapTestResult = TestNGTAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
                testSet.addTestResult( tapTestResult );
View Full Code Here

//    {
//      ps.println( header.toString() );
//    }
   
    //ps.println( plan.toString() );
    Plan plan = new Plan( this.numberOfBailOuts + this.numberOfTestResults );
    pw.println( plan );
   
    for( TapResult tapLine : tapLines )
    {
      if ( tapLine instanceof TestResult )
View Full Code Here

      throw new RuntimeException("Failed to create tap output directory [" + new File( TAP_OUTPUT_DIRECTORY ) + "]. Exception message: " + e.getMessage(), e);
    }
   
    this.tapProducer.setHeader(new Header(TAP_VERSION));   
    int numberOfTests = testContext.getAllTestMethods().length;
    Plan tapPlan;
    if ( numberOfTests == 0 )
    {
     
      SkipPlan skipPlan = new SkipPlan("no tests found.");
      tapPlan = new Plan(numberOfTests, skipPlan);
    }
    else
    {
      tapPlan = new Plan(numberOfTests);
    }
    this.tapProducer.setPlan(tapPlan);
  }
View Full Code Here

  protected void extractPlan( Matcher matcher )
  {
    Integer initialTest = Integer.parseInt( matcher.group(1) );
    Integer lastTest = Integer.parseInt( matcher.group(3) );
   
    Plan plan = null;
    plan = new Plan( initialTest, lastTest );
   
    String skipToken = matcher.group(4);
    if ( skipToken != null )
    {
      String reason = matcher.group( 5 );
      final SkipPlan skip = new SkipPlan( reason );
      plan.setSkip(skip);
    }
   
    String commentToken = matcher.group( 6 );
    if ( commentToken != null )
    {
      String text = matcher.group ( 7 );
      final Comment comment = new Comment( text );
      plan.setComment( comment );
    }
   
    this.plan = plan;
  }
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.tap4j.model.Plan

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.