juergen     2003/04/02 08:21:29

  Modified:    
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
                        XMLResponseBodyAssert.java
  Log:
  A response element may contain multiple propstat elements. Ignore their ordering.
  
  Revision  Changes    Path
  1.20      +6 -3      
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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- XMLResponseBodyAssert.java        2 Apr 2003 15:32:58 -0000       1.19
  +++ XMLResponseBodyAssert.java        2 Apr 2003 16:21:29 -0000       1.20
  @@ -429,6 +429,9 @@
               result = getHrefNormalised(e.getTextTrim());
           } else if (getPathName(pathName, 
e.getName()).equals("/multistatus/response") && e.getChild("href", e.getNamespace()) 
!= null) {
               result = getHrefNormalised(e.getChild("href", 
e.getNamespace()).getTextTrim());
  +        } else if (getPathName(pathName, 
e.getName()).equals("/multistatus/response/propstat") && 
e.getChild("status",e.getNamespace()) != null  ) {
  +            result = getPathName("/multistatus/response/propstat/status",
  +                            e.getChildText("status",e.getNamespace()));
           } else if (getPathName(pathName, 
e.getName()).equals("/multistatus/response/propstat/prop/supported-report-set/supported-report")
 && e.getChild("report",e.getNamespace()) != null  && e.getChildren().size() == 1) {
               result = 
getPathName("/multistatus/response/propstat/prop/supported-report-set/supported-report/report",
                               
((Element)e.getChild("report",e.getNamespace()).getChildren().get(0)).getName());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to