[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jbosstest/src/main/org/jboss/test/cluster/test  ...
From:       Scott Stark <scott.stark () jboss ! com>
Date:       2005-04-30 22:09:35
Message-ID: E1DS09X-0006oE-BW () committer01 ! frg ! pub ! inap ! atl ! jboss ! com
[Download RAW message or body]

  User: starksm 
  Date: 05/04/30 18:09:35

  Modified:    src/main/org/jboss/test/cluster/test  Tag: Branch_4_0
                        BaseTest.java
  Log:
  Treat an absence of the X-SawTestHttpAttribute header is treated as true since \
there are pages used that done't add it.  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.7   +5 -2      jbosstest/src/main/org/jboss/test/cluster/test/BaseTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BaseTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cluster/test/BaseTest.java,v
  retrieving revision 1.2.2.6
  retrieving revision 1.2.2.7
  diff -u -b -r1.2.2.6 -r1.2.2.7
  --- BaseTest.java	30 Apr 2005 16:57:48 -0000	1.2.2.6
  +++ BaseTest.java	30 Apr 2005 22:09:35 -0000	1.2.2.7
  @@ -170,9 +170,12 @@
   
         // Read the response body.
         byte[] responseBody = method.getResponseBody();
  -      // Validate that the attribute was actually seen
  +      /* Validate that the attribute was actually seen. An absence of the
  +         header is treated as true since there are pages used that done't
  +         add it.
  +      */
         Header hdr = method.getResponseHeader("X-SawTestHttpAttribute");
  -      Boolean sawAttr = hdr != null ? Boolean.valueOf(hdr.getValue()) : \
Boolean.FALSE;  +      Boolean sawAttr = hdr != null ? \
Boolean.valueOf(hdr.getValue()) : Boolean.TRUE;  String attr = null;
         if( sawAttr.booleanValue() )
            attr = new String(responseBody);
  
  
  


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic