Package org.cishell.testing.convertertester.core.tester2.graphcomparison

Examples of org.cishell.testing.convertertester.core.tester2.graphcomparison.LossyComparer


      report.println("");
     
      for (int ii = 0; ii < convResults.length; ii++) {
        if (convResults[ii].wasTested()) {
          this.convSubGen.generate(convResults[ii]);
        ConvReport convReport = this.convSubGen.getConvReport();
        convReportsList.add(convReport);
        }
      }
     
      ConvReport[] convReports =
View Full Code Here


      Data firstData = convertedData[0];
      Object fileData = firstData.getData();
      if (fileData != null && fileData instanceof File) {
        this.convertedDataReport =
          new ConvertedDataReport((File) fileData,(String) firstData.getMetadata().get(DataProperty.LABEL) +
              " for " + fpr.getName() + " of " + tr.getName());
      } else {
        this.convertedDataReport =
          new ConvertedDataReport((String) firstData.getMetadata().get(DataProperty.LABEL)
              " for " + fpr.getName() + " of " +  tr.getName());
      }
  }
View Full Code Here

            addReturn(testReportData);
           
            FilePassReport[] sFilePassReports =
              tr.getSuccessfulFilePassReports();
            for (int kk = 0; kk < sFilePassReports.length; kk++) {
              FilePassReport fp = sFilePassReports[kk];
              File fpFile = fp.getFilePassReport();
              Data fpData = createReportData(fpFile, fp.getName(),
                  testReportData);
              addReturn(fpData);
              addAllConvertedDataReports(fp, fpData);
              }
           
            FilePassReport[] fFilePassReports =
              tr.getFailedFilePassReports()
            for (int kk = 0; kk < fFilePassReports.length; kk++) {
              FilePassReport fp = fFilePassReports[kk];
              File fpFile = fp.getFilePassReport();
              Data fpData = createReportData(fpFile, fp.getName(),
                  testReportData);
              addReturn(fpData);
              addAllConvertedDataReports(fp, fpData);
              }
          }
View Full Code Here

      List successfulFPReports = new ArrayList();
      for (int ii = 0; ii < successfulFPs.length; ii++) {
        FilePassResult successfulFP = successfulFPs[ii];
       
        filePassSubGen.generateSubreport(tr, successfulFP);
        FilePassReport filePassReport = filePassSubGen.getFilePassReport();
       
        successfulFPReports.add(filePassReport);
      }
     
      List failedFPReports = new ArrayList();
      for (int ii = 0; ii < failedFPs.length; ii++) {
        FilePassResult failedFP = failedFPs[ii];
       
        filePassSubGen.generateSubreport(tr, failedFP);
        FilePassReport filePassReport = filePassSubGen.getFilePassReport();
       
        failedFPReports.add(filePassReport);
      }
      this.testReport = new TestReport(reportFile, tr.getNameWithSuccess(),
          (FilePassReport[]) successfulFPReports.toArray(new FilePassReport[successfulFPReports.size()]),
View Full Code Here

      ConvertedDataReport[] testConvDataReports = genConvDataReports(tr, fpr, testData);
      ConvertedDataReport[] origCompareConvDataReports = genConvDataReports(tr, fpr,origCompareData);
      ConvertedDataReport[] resultCompareConvDataReports = genConvDataReports(tr, fpr,resultCompareData);
     
     
      this.filePassReport = new FilePassReport(reportFile, fpr.getName() + "  for " + tr.getName(),
          testConvDataReports,
          origCompareConvDataReports,
          resultCompareConvDataReports);
     
    } catch (IOException e) {
View Full Code Here

            
             System.out.println("Returning reports...");
            
             //return readme report
            
             ReadMeReport readmeReport = readmeGen.getReadMe();
             File readmeFile = readmeReport.getReportFile();
             Data readMeData = createReportData(readmeFile,
                 readmeReport.getName(), null);
             addReturn(readMeData);
            
             //return all converters report
            
             AllConvsReport allConvReport =
View Full Code Here

                         File nwbConvGraph) {
    String readmePath = TestFileKeeper.DEFAULT_ROOT_DIR +
      "ReportREADME.txt";
    File readmeFile = new File(readmePath);

    this.readme = new ReadMeReport(readmeFile, "README");
  }
View Full Code Here

         * converter
         * @param parent the parent of the file pass
         */
        private void addFilePasses(TestReport[] testReports, Data parent) {
          for (int ii = 0; ii < testReports.length; ii++) {
            TestReport tr = testReports[ii];
            File testReportFile = tr.getTestReport();
            Data testReportData = createReportData(testReportFile,
                tr.getName(), parent);
            addReturn(testReportData);
           
            FilePassReport[] sFilePassReports =
              tr.getSuccessfulFilePassReports();
            for (int kk = 0; kk < sFilePassReports.length; kk++) {
              FilePassReport fp = sFilePassReports[kk];
              File fpFile = fp.getFilePassReport();
              Data fpData = createReportData(fpFile, fp.getName(),
                  testReportData);
              addReturn(fpData);
              addAllConvertedDataReports(fp, fpData);
              }
           
            FilePassReport[] fFilePassReports =
              tr.getFailedFilePassReports()
            for (int kk = 0; kk < fFilePassReports.length; kk++) {
              FilePassReport fp = fFilePassReports[kk];
              File fpFile = fp.getFilePassReport();
              Data fpData = createReportData(fpFile, fp.getName(),
                  testReportData);
View Full Code Here

      List passedTRReports = new ArrayList();
      for (int ii = 0; ii < passedTRs.length; ii++) {
        TestResult passedTR = passedTRs[ii];
       
        this.testResultSubGen.generateSubreport(passedTR);
        TestReport testReport = testResultSubGen.getTestReport();
       
        passedTRReports.add(testReport);
      }
     
      List pPassedTRReports = new ArrayList();
      for (int ii = 0; ii < pPassedTRs.length; ii++) {
        TestResult pPassedTR = pPassedTRs[ii];
       
        this.testResultSubGen.generateSubreport(pPassedTR);
        TestReport testReport = testResultSubGen.getTestReport();
       
        pPassedTRReports.add(testReport);
      }
     
      List failedTRReports = new ArrayList();
      for (int ii = 0; ii < failedTRs.length; ii++) {
        TestResult failedTR = failedTRs[ii];
       
        this.testResultSubGen.generateSubreport(failedTR);
        TestReport testReport = testResultSubGen.getTestReport();
       
        failedTRReports.add(testReport);
      }
     
      this.allTestsReport = new AllTestsReport(reportFile,
View Full Code Here

        filePassSubGen.generateSubreport(tr, failedFP);
        FilePassReport filePassReport = filePassSubGen.getFilePassReport();
       
        failedFPReports.add(filePassReport);
      }
      this.testReport = new TestReport(reportFile, tr.getNameWithSuccess(),
          (FilePassReport[]) successfulFPReports.toArray(new FilePassReport[successfulFPReports.size()]),
          (FilePassReport[]) failedFPReports.toArray(new FilePassReport[failedFPReports.size()]));
         
     
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.cishell.testing.convertertester.core.tester2.graphcomparison.LossyComparer

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.