geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r684028 - /geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java
Date Fri, 08 Aug 2008 17:55:23 GMT
Author: gawor
Date: Fri Aug  8 10:55:22 2008
New Revision: 684028

URL: http://svn.apache.org/viewvc?rev=684028&view=rev
Log:
trim before comparing

Modified:
    geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java

Modified: geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java?rev=684028&r1=684027&r2=684028&view=diff
==============================================================================
--- geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java
(original)
+++ geronimo/server/trunk/testsupport/testsupport-common/src/main/java/org/apache/geronimo/testsupport/DOMUtils.java
Fri Aug  8 10:55:22 2008
@@ -114,8 +114,8 @@
                 compareNodes(expectedChild, actualChild);
             }
         } else if (expected instanceof Text) {
-            String expectedData = ((Text)expected).getData();
-            String actualData = ((Text)actual).getData();
+            String expectedData = ((Text)expected).getData().trim();
+            String actualData = ((Text)actual).getData().trim();
             
             if (!expectedData.equals(actualData)) {
                 throw new Exception("Text does not match: " + expectedData + " " + actualData);



Mime
View raw message