juergen 2004/01/29 05:08:37
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
more flexibility in accessing the content-type header in xcase of GET
Revision Changes Path
1.73 +5 -5
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
Index: TProcessors.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- TProcessors.java 15 Nov 2003 14:41:11 -0000 1.72
+++ TProcessors.java 29 Jan 2004 13:08:37 -0000 1.73
@@ -1634,7 +1634,7 @@
} else if (m instanceof UpdateMethod){
result = new UpdateAssert ((XMLResponseMethodBase) m,
expectedResponseAsDOM(expectedResponseElement), xdavConfiguration, xmlresult,
expectedResponseCodes);
} else if (m instanceof GetMethod){
- if (m.getResponseHeader("Content-Type") == null ||
!m.getResponseHeader("Content-Type").getValue().equals("text/xml")) {
+ if (m.getResponseHeader("Content-Type") == null ||
!m.getResponseHeader("Content-Type").getValue().trim().startsWith("text/xml")) {
result = new GetAssert ( m,
expectedResponseAsStream(expectedResponseElement), xdavConfiguration, xmlresult,
expectedResponseCodes);
} else {
result = new GetXMLAssert ( m,
expectedResponseAsStream(expectedResponseElement), xdavConfiguration, xmlresult,
expectedResponseCodes);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]