Examples of OdfPackageConstraint


Examples of org.odftoolkit.odfdom.pkg.OdfPackageConstraint

    }
  }

  private void logMissingConstraint(ValidationConstraint constraint, String errorLevel, int problemOccurance) {
    if (constraint instanceof OdfPackageConstraint) {
      OdfPackageConstraint pkgConstraint = (OdfPackageConstraint) constraint;
      Assert.fail(problemOccurance + "x time(s) was in " + getTestFilePath() + " not thrown the ODF 1.2 Package " + errorLevel + " '" + pkgConstraint.name() + "'!");
    } else {
      OdfSchemaConstraint schemaConstraint = (OdfSchemaConstraint) constraint;
      Assert.fail(problemOccurance + "x time(s) was in " + getTestFilePath() + " not thrown the ODF 1.2 Schema " + errorLevel + " '" + schemaConstraint.name() + "'!");
    }
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.OdfPackageConstraint

    }
  }

  private void logUnexpectedConstraint(ValidationConstraint constraint, String errorLevel, int problemOccurance) {
    if (constraint instanceof OdfPackageConstraint) {
      OdfPackageConstraint pkgConstraint = (OdfPackageConstraint) constraint;
      Assert.fail(problemOccurance + "x time(s) in " + getTestFilePath() + " a new ODF 1.2 Package " + errorLevel + " '" + pkgConstraint.name() + "' was unexpected thrown!");
    } else {
      OdfSchemaConstraint schemaConstraint = (OdfSchemaConstraint) constraint;
      Assert.fail(problemOccurance + "x time(s) in " + getTestFilePath() + " a new ODF 1.2 Schema " + errorLevel + " '" + schemaConstraint.name() + "' was unexpected thrown!");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.