Package com.adobe.epubcheck.ocf

Examples of com.adobe.epubcheck.ocf.OCFPackage


      /***Here are called custom checks (CTC Package)**/
      CheckManager c = new CheckManager(zip, report);
      c.checkPackage();

      OCFPackage ocf = new OCFZipPackage(zip);
      OCFChecker checker = new OCFChecker(ocf, report, null);
      checker.runChecks();

      CheckMultiplePaginationSchemes();

View Full Code Here


    URL inputUrl = common.class.getResource("package");
    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());
View Full Code Here

TOP

Related Classes of com.adobe.epubcheck.ocf.OCFPackage

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.