Package br.eti.kinoshita.tap4j.model

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


  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


    {
      TestSet testSet = new TestSet();
     
      List<ITestResult> testResults = testResultsPerClass.get( clazz );
     
      testSet.setPlan( new Plan(testResults.size()) );
     
      for ( ITestResult testResult : testResults )
      {
        TestResult tapTestResult = TestNGTAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
        testSet.addTestResult( tapTestResult );
View Full Code Here

    for( ITestNGMethod method : keySet )
    {
      TestSet testSet = new TestSet();
     
      List<ITestResult> testResults = testResultsPerMethod.get( method );
      testSet.setPlan( new Plan(testResults.size()) );
     
      for ( ITestResult testResult : testResults )
      {
        TestResult tapTestResult = TestNGTAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
        testSet.addTestResult( tapTestResult );
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

          {
            Integer totalTestResultsByGroup = this.getTotalTestResultsByTestGroup(group);
           
            testSet = new TestSet();
             
            testSet.setPlan( new Plan( totalTestResultsByGroup ) );
           
            List<ITestResult> testResults = testResultsPerGroup.get( group );
             
            for ( ITestResult testResult : testResults )
            {
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

          {
            Integer totalTestResultsByGroup = this.getTotalTestResultsByTestGroup(group);
           
            testSet = new TestSet();
             
            testSet.setPlan( new Plan( totalTestResultsByGroup ) );
           
            List<ITestResult> testResults = testResultsPerGroup.get( group );
             
            for ( ITestResult testResult : testResults )
            {
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

    {
      TestSet testSet = new TestSet();
     
      List<ITestResult> testResults = testResultsPerClass.get( clazz );
     
      testSet.setPlan( new Plan(testResults.size()) );
     
      for ( ITestResult testResult : testResults )
      {
        TestResult tapTestResult = TAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
        testSet.addTestResult( tapTestResult );
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.