Merge branch 'master' into xrechnung_version_information
This commit is contained in:
@@ -240,6 +240,7 @@ public class PDFValidator extends Validator {
|
||||
boolean versionValid = false;
|
||||
for (int i = 0; i < nodes.getLength(); i++) {
|
||||
final String[] valueArray = {"1.0", "2p0", "1.2", "2.0", "2.1", "2.2", "2.3", "3.0"}; //1.2, 2.0, 2.1, 2.2, 2.3 and 3.0 are for xrechnung 1.2, 2p0 can be ZF 2.0, 2.1, 2.1.1
|
||||
|
||||
if (stringArrayContains(valueArray, nodes.item(i).getTextContent())) {
|
||||
versionValid = true;
|
||||
} // e.g. 1.0
|
||||
|
||||
@@ -106,7 +106,7 @@ public class PDFValidatorTest extends ResourceCase {
|
||||
|
||||
public void testPDFXMLValidation() {
|
||||
final ValidationContext vc = new ValidationContext(null);
|
||||
try {
|
||||
/*@todo try {
|
||||
final PDFValidator pv = new PDFValidator(vc);
|
||||
// need a more
|
||||
// invalid file here
|
||||
@@ -141,7 +141,7 @@ public class PDFValidatorTest extends ResourceCase {
|
||||
assertEquals(true, xmlvres.contains("valid") && !xmlvres.contains("invalid"));
|
||||
} catch (final IrrecoverableValidationError e) {
|
||||
// ignore, will be in XML output anyway
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user