diff --git a/src/main/java/ZUV/ValidationResultItem.java b/src/main/java/ZUV/ValidationResultItem.java
index eb8f19f..0677a8b 100644
--- a/src/main/java/ZUV/ValidationResultItem.java
+++ b/src/main/java/ZUV/ValidationResultItem.java
@@ -66,13 +66,13 @@ public String getXML() {
String additionalAttributes="";
String additionalContents="";
if (section!=-1) {
- additionalAttributes+=" type='"+section+"'";
+ additionalAttributes+=" type=\""+section+"\"";
}
if (location!=null) {
- additionalAttributes+=" location='"+location+"'";
+ additionalAttributes+=" location=\""+location+"\"";
}
if (criterion!=null) {
- additionalAttributes+=" criterion='"+criterion+"'";
+ additionalAttributes+=" criterion=\""+criterion+"\"";
}
if (stacktrace!=null) {
additionalContents+=""+stacktrace+"";
diff --git a/src/test/java/ZUV/PDFValidatorTest.java b/src/test/java/ZUV/PDFValidatorTest.java
index 5a9097e..de93cb6 100644
--- a/src/test/java/ZUV/PDFValidatorTest.java
+++ b/src/test/java/ZUV/PDFValidatorTest.java
@@ -25,8 +25,8 @@ public void testPDFValidation() {
assertEquals(true, actual.contains("batchSummary totalJobs=\"1\" failedToParse=\"0\" encrypted=\"0\""));
assertEquals(true, actual.contains("validationReports compliant=\"1\" nonCompliant=\"0\" failedJobs=\"0\">"));
// test some xml
- assertEquals(true, actual.contains("[CII-DT-031] - currencyID should not be present"));
- // test some binary signature recognition
+ assertEquals(true, actual.contains("[CII-DT-031] - currencyID should not be present"));
+ // test some binary signature recognition
assertEquals(true, actual.contains("2"));
// valid one
@@ -51,7 +51,7 @@ public void testPDFValidation() {
pv.validate();
actual=pv.getXMLResult();
- assertEquals(true,actual.contains("XMP Metadata: ConformanceLevel contains invalid value"));
+ assertEquals(true,actual.contains("XMP Metadata: ConformanceLevel contains invalid value"));
}
diff --git a/src/test/java/ZUV/XMLValidatorTest.java b/src/test/java/ZUV/XMLValidatorTest.java
index 65237a5..487fbba 100644
--- a/src/test/java/ZUV/XMLValidatorTest.java
+++ b/src/test/java/ZUV/XMLValidatorTest.java
@@ -20,29 +20,29 @@ public void testXMLValidation() {
xv.validate();
assertTrue(xv.getXMLResult().contains("unsupported profile type"));
+
-
- assertTrue(xv.getXMLResult().contains("[CII-SR-002] - TestIndicator should not be present\n" +
- "[CII-SR-013] - Name should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n" +
- "[CII-DT-031] - currencyID should not be present\n"));
+ assertTrue(xv.getXMLResult().contains("[CII-SR-002] - TestIndicator should not be present\n" +
+ "[CII-SR-013] - Name should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n" +
+ "[CII-DT-031] - currencyID should not be present\n"));
}