Package com.adobe.epubcheck.reporting

Examples of com.adobe.epubcheck.reporting.CheckingReport


    {
      report = new DefaultReportImpl("none");
    }
    else if (jsonOutput)
    {
      report = new CheckingReport(path, (fileOut==null)?null:fileOut.getPath());
    }
    else if (xmlOutput)
    {
      PrintWriter pw = null;
    if (fileOut == null) {
View Full Code Here


    URL inputUrl = common.class.getResource("package");
    String inputPath = inputUrl.getPath();
    String outputPath = inputPath + "/wrong_extension_actual_results.json";
    String expectedOutputPath = inputPath + "/wrong_extension_expected_results.json";
    inputPath += "/wrong_extension.zip";
    CheckingReport report = new CheckingReport(inputPath, outputPath);
    report.initialize();
    File inputEpub = new File(inputPath);
    EpubCheck check = new EpubCheck(inputEpub, report);
    org.junit.Assert.assertEquals("The file should have generated warnings.", 1, check.doValidate());
    report.generate();
    File actualOutput = new File(outputPath);
    Assert.assertTrue("Output file is missing.", actualOutput.exists());
    File expectedOutput = new File(expectedOutputPath);
    Assert.assertTrue("Expected output file is missing.", expectedOutput.exists());
    common.compareJson(expectedOutput, actualOutput);
View Full Code Here

    URL inputUrl = common.class.getResource("package");
    String inputPath = inputUrl.getPath();
    String outputPath = inputPath + "/missing_file_actual_results.json";
    String expectedOutputPath = inputPath + "/missing_file_expected_results.json";
    inputPath += "/no_existence.epub";
    CheckingReport report = new CheckingReport(inputPath, outputPath);
    report.initialize();
    File inputEpub = new File(inputPath);
    EpubCheck check = new EpubCheck(inputEpub, report);
    org.junit.Assert.assertEquals("The file should have generated warnings.", 2, check.doValidate());
    report.generate();
    File actualOutput = new File(outputPath);
    Assert.assertTrue("Output file is missing.", actualOutput.exists());
    File expectedOutput = new File(expectedOutputPath);
    Assert.assertTrue("Expected output file is missing.", expectedOutput.exists());
    common.compareJson(expectedOutput, actualOutput);
View Full Code Here

    String inputPath = inputUrl.getPath();
    String outputPath = inputPath + "/missing_opf_epub_file_actual_results.json";
    String expectedOutputPath = inputPath + "/missing_opf_epub_file_expected_results.json";
    inputPath += "/missing_opf_file";
    OCFPackage ocf = new OCFMockPackage(inputPath);
    CheckingReport report = new CheckingReport(inputPath, outputPath);
    report.initialize();
    ocf.setReport(report);
    OPFChecker opfChecker = new OPFChecker(ocf, report, "test_single_opf", EPUBVersion.VERSION_3);
    opfChecker.runChecks();
    report.generate();
    File actualOutput = new File(outputPath);
    Assert.assertTrue("Output file is missing.", actualOutput.exists());
    File expectedOutput = new File(expectedOutputPath);
    Assert.assertTrue("Expected output file is missing.", expectedOutput.exists());
    common.compareJson(expectedOutput, actualOutput);
View Full Code Here

TOP

Related Classes of com.adobe.epubcheck.reporting.CheckingReport

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.