You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/04/28 11:54:29 UTC
[sling-org-apache-sling-installer-core] branch master updated: Fix
XML test case with Java 11
This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-core.git
The following commit(s) were added to refs/heads/master by this push:
new be3eece Fix XML test case with Java 11
be3eece is described below
commit be3eecedbbb41047c179d56cf2bb76dc85986623
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Apr 28 13:54:12 2020 +0200
Fix XML test case with Java 11
---
.../sling/installer/api/serializer/ConfigurationSerializerTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/java/org/apache/sling/installer/api/serializer/ConfigurationSerializerTest.java b/src/test/java/org/apache/sling/installer/api/serializer/ConfigurationSerializerTest.java
index fbd0dde..a97c49a 100644
--- a/src/test/java/org/apache/sling/installer/api/serializer/ConfigurationSerializerTest.java
+++ b/src/test/java/org/apache/sling/installer/api/serializer/ConfigurationSerializerTest.java
@@ -80,6 +80,11 @@ public class ConfigurationSerializerTest {
String actualLine = actualLineIterator.nextLine();
// ignore lines starting with "*"
if (!expectedLine.equals("*")) {
+ // XML output differs between Java 1.8 and Java 11
+ if ( expectedLine.startsWith("<?xml version=\"1.0\" encoding=\"UTF-8\"") &&
+ actualLine.startsWith("<?xml version=\"1.0\" encoding=\"UTF-8\"") ) {
+ continue;
+ }
Assert.assertEquals(expectedLine, actualLine);
}
}