[java-support] branch master updated: Revert previous and reference the correct class
Rod Widdowson
rdw at steadingsoftware.com
Mon Oct 9 09:36:44 EDT 2017
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=7998cef5d8e21fff560858034ae382d9d9df11d1
The following commit(s) were added to refs/heads/master by this push:
new 7998cef Revert previous and reference the correct class
7998cef is described below
commit 7998cef5d8e21fff560858034ae382d9d9df11d1
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Oct 9 14:32:08 2017 +0100
Revert previous and reference the correct class
---
.../utilities/java/support/xml/SerializeSupportTest.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/java/net/shibboleth/utilities/java/support/xml/SerializeSupportTest.java b/src/test/java/net/shibboleth/utilities/java/support/xml/SerializeSupportTest.java
index 7e20afd..73f2a62 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/xml/SerializeSupportTest.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/xml/SerializeSupportTest.java
@@ -35,6 +35,7 @@ import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
import org.w3c.dom.ls.DOMImplementationLS;
import org.w3c.dom.ls.LSOutput;
import org.w3c.dom.ls.LSSerializer;
@@ -127,7 +128,12 @@ public class SerializeSupportTest {
final Node actualChild = actualChildren.item(i);
assertEquals(expectedChild, actualChild);
}
- }
+ } else if (expected instanceof Text) {
+ final String expectedData = ((Text) expected).getData().trim();
+ final String actualData = ((Text) actual).getData().trim();
+
+ Assert.assertEquals(expectedData, actualData, "Text does not match: " + expectedData + " " + actualData);
+ }
}
@BeforeTest public void setup()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list