This is an automated email from the ASF dual-hosted git repository.

fjtiradosarti pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git


The following commit(s) were added to refs/heads/main by this push:
     new 559d8d5845 Ignore namespace differences during SVG comparison (#3680)
559d8d5845 is described below

commit 559d8d584556d7ab87aaedecf74413452e7e28d0
Author: Martin Weiler <[email protected]>
AuthorDate: Wed Sep 25 01:52:35 2024 -0600

    Ignore namespace differences during SVG comparison (#3680)
---
 .../src/main/java/org/kie/kogito/test/utils/CustomSVGDiffer.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/kogito-test-utils/src/main/java/org/kie/kogito/test/utils/CustomSVGDiffer.java
 
b/kogito-test-utils/src/main/java/org/kie/kogito/test/utils/CustomSVGDiffer.java
index 9fb5413f29..f1c46be212 100644
--- 
a/kogito-test-utils/src/main/java/org/kie/kogito/test/utils/CustomSVGDiffer.java
+++ 
b/kogito-test-utils/src/main/java/org/kie/kogito/test/utils/CustomSVGDiffer.java
@@ -21,6 +21,7 @@ package org.kie.kogito.test.utils;
 import org.xmlunit.builder.DiffBuilder;
 import org.xmlunit.builder.Input;
 import org.xmlunit.diff.ComparisonResult;
+import org.xmlunit.diff.ComparisonType;
 import org.xmlunit.diff.Diff;
 import org.xmlunit.diff.DifferenceEvaluators;
 
@@ -41,6 +42,9 @@ public class CustomSVGDiffer {
                             if 
(comparison.getControlDetails().getTarget().getNodeName().equals("svg")) {
                                 return ComparisonResult.SIMILAR;
                             }
+                            if (comparison.getType() == 
ComparisonType.NAMESPACE_URI) {
+                                return ComparisonResult.SIMILAR;
+                            }
                             return outcome;
                         }));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to