Package br.eti.kinoshita.tap4j.model

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


  /* (non-Javadoc)
   * @see br.eti.kinoshita.tap4j.TapConsumer#printSummary(java.io.PrintWriter)
   */
  public void printSummary( PrintWriter pw )
  {
    TestSet testSet = this.getTestSet();
    String summary = testSet.getSummary();
    pw.println( summary );
  }
View Full Code Here


  /* (non-Javadoc)
   * @see br.eti.kinoshita.tap4j.TapConsumer#printDetails(java.io.PrintWriter)
   */
  public void printDetails( PrintWriter pw )
  {
    TestSet testSet = this.getTestSet();
    if ( testSet.getHeader() != null )
    {
      pw.println( testSet.getHeader().toString() );
    }
    if ( testSet.getPlan() != null )
    {
      pw.println( testSet.getPlan().toString() );
    }
    List<TapResult> tapLines = testSet.getTapLines();
    for ( TapResult tapLine :  tapLines)
    {
      pw.println( tapLine.toString() );
    }
    if ( testSet.getFooter() != null )
    {
      pw.println( testSet.getFooter().toString() );
    }
  }
View Full Code Here

   
    Set<Class<?>> keySet = testResultsPerClass.keySet();
   
    for( Class<?> clazz : keySet )
    {
      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 );
      }
      
      File output = new File(testContext.getOutputDirectory(), clazz.getName()+".tap");
      tapProducer.dump(testSet, output);
    }
View Full Code Here

   
    Set<ITestNGMethod> keySet = testResultsPerMethod.keySet();
   
    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 );
      }

      File output = new File(testContext.getOutputDirectory(), method.getTestClass().getName()+"#"+method.getMethodName()+".tap");
      tapProducer.dump(testSet, output);
   
View Full Code Here

      List<ISuite> suites,
      String outputDirectory)
  {
    for ( ISuite suite : suites )
    {
      testSet = new TestSet();
     
      Set<Class<?>> testResultsSet = this.getTestResultsSetPerSuite(suite);
     
      Integer totalTestResults = this.getTotalTestResultsByTestSuite(testResultsSet);
View Full Code Here

        {
          if(StringUtils.isNotEmpty(group))
          {
            Integer totalTestResultsByGroup = this.getTotalTestResultsByTestGroup(group);
           
            testSet = new TestSet();
             
            testSet.setPlan( new Plan( totalTestResultsByGroup ) );
           
            List<ITestResult> testResults = testResultsPerGroup.get( group );
             
View Full Code Here

      List<ISuite> suites,
      String outputDirectory)
  {
    for ( ISuite suite : suites )
    {
      testSet = new TestSet();
     
      Set<Class<?>> testResultsSet = this.getTestResultsSetPerSuite(suite);
     
      Integer totalTestResults = this.getTotalTestResultsByTestSuite(testResultsSet);
View Full Code Here

        {
          if(StringUtils.isNotEmpty(group))
          {
            Integer totalTestResultsByGroup = this.getTotalTestResultsByTestGroup(group);
           
            testSet = new TestSet();
             
            testSet.setPlan( new Plan( totalTestResultsByGroup ) );
           
            List<ITestResult> testResults = testResultsPerGroup.get( group );
             
View Full Code Here

  /* (non-Javadoc)
   * @see br.eti.kinoshita.tap4j.TapConsumer#getTestSet()
   */
  public TestSet getTestSet()
  {
    testSet = new TestSet();
   
    testSet.setHeader( this.header );
    testSet.setPlan( this.plan );
   
    for( TestResult testResult : testResults )
View Full Code Here

   
    Set<Class<?>> keySet = testResultsPerClass.keySet();
   
    for( Class<?> clazz : keySet )
    {
      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 );
      }
      
      File output = new File(testContext.getOutputDirectory(), clazz.getName()+".tap");
      tapProducer.dump(testSet, output);
    }
View Full Code Here

TOP

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

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.