juergen     2003/04/03 07:43:18

  Modified:    
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
                        XMLResponseBodyAssert.java
  Log:
  make the sorting more robust (for the delta-v testsuite).
  
  Revision  Changes    Path
  1.21      +8 -7      
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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- XMLResponseBodyAssert.java        2 Apr 2003 16:21:29 -0000       1.20
  +++ XMLResponseBodyAssert.java        3 Apr 2003 15:43:18 -0000       1.21
  @@ -184,7 +184,7 @@
           boolean result = true;
   
   
  -        //      System.out.println("########## comparing now " + element1 + "  with 
 " + element2);
  +//System.out.println("########## comparing now " + element1 + "  with  " + 
element2);
   
   
           // check the name of the element
  @@ -423,9 +423,10 @@
   
       private String getDisplayName(Element e, String pathName) {
           String result = null;
  -        if (getPathName(pathName, e.getName()).equals("/multistatus/response/href") 
||
  -            getPathName(pathName, 
e.getName()).equals("/multistatus/response/propstat/prop/workspace-checkout-set/href"))
 {
  -
  +        if (getPathName(pathName, e.getName()).equals("/multistatus/response/href") 
) {
  +            result = getPathName("/multistatus/response/href",
  +                            getHrefNormalised(e.getTextTrim()));
  +        } else if (getPathName(pathName, 
e.getName()).equals("/multistatus/response/propstat/prop/workspace-checkout-set/href"))
 {
               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());
  
  
  

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

Reply via email to