juergen 02/05/23 06:28:03
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
XMLResponseBodyAssert.java
Log:
do not ignore white spaces in the xml element text any more (except they both
contain only white spaces)
Revision Changes Path
1.8 +6 -4
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLResponseBodyAssert.java
Index: XMLResponseBodyAssert.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLResponseBodyAssert.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XMLResponseBodyAssert.java 13 May 2002 15:46:26 -0000 1.7
+++ XMLResponseBodyAssert.java 23 May 2002 13:28:03 -0000 1.8
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLResponseBodyAssert.java,v
1.7 2002/05/13 15:46:26 juergen Exp $
- * $Revision: 1.7 $
- * $Date: 2002/05/13 15:46:26 $
+ * $Header:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLResponseBodyAssert.java,v
1.8 2002/05/23 13:28:03 juergen Exp $
+ * $Revision: 1.8 $
+ * $Date: 2002/05/23 13:28:03 $
*
* ====================================================================
*
@@ -172,7 +172,7 @@
}
// check the value of the element
- if (!compareValues(pathName, element1.getName(), element1.getTextTrim(),
element2.getTextTrim())) {
+ if (!compareValues(pathName, element1.getName(), element1.getText(),
element2.getText())) {
result = false;
}
@@ -305,6 +305,8 @@
if (existsInConfig(path, name)) {
return true;
}
+
+ if (expectedValue.trim().equals("") &&
expectedValue.trim().equals(receivedValue.trim())) return true;
// hard coded for now, should be configurable in the config file:
// allow multiple response codes to be checked against
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>