User: starksm 
  Date: 01/05/30 14:08:26

  Modified:    src/main/org/jboss/test/web/test TestWebIntegration.java
  Log:
  Add test of a secure servlet accessing a secure EJB from a child thread
  
  Revision  Changes    Path
  1.5       +5 -5      
jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java
  
  Index: TestWebIntegration.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestWebIntegration.java   2001/05/23 22:54:34     1.4
  +++ TestWebIntegration.java   2001/05/30 21:08:26     1.5
  @@ -20,7 +20,7 @@
   with a role of 'AuthorizedUser' in the servlet container.
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.4 $
  +@version $Revision: 1.5 $
   */
   public class TestWebIntegration extends TestCase
   {
  @@ -50,15 +50,15 @@
           {
               HttpClient httpConn = new HttpClient(url);
               int responseCode = httpConn.getResponseCode();
  -            if( responseCode != HttpURLConnection.HTTP_OK &&
  -             responseCode != HttpURLConnection.HTTP_NOT_FOUND )
  +            String responseMessage = httpConn.getResponseMessage();
  +            if( responseCode < 100 )
               {
  -                System.out.println(baseURL+" result="+responseCode+" in HTTP OK, 
skipping tests");
  +                System.out.println(baseURL+" No valid HTTP response, 
code="+responseCode+", skipping tests");
               }
               else
               {
                   webServerAvailable = true;
  -                System.out.println("Found webserver at: "+baseURL);
  +                System.out.println("Found webserver at: "+baseURL+", 
code="+responseCode+", msg="+responseMessage);
                   Deploy.deploy("jbosstest-web.ear");
               }
           }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to