[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/web/test SingleSignOnUnitTestCase.java
From:       Scott M Stark <starksm () users ! sourceforge ! net>
Date:       2004-07-31 15:43:49
Message-ID: E1Bqw1V-0002Qf-PK () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

  User: starksm 
  Date: 04/07/31 08:43:49

  Modified:    src/main/org/jboss/test/web/test Tag: Branch_3_2
                        SingleSignOnUnitTestCase.java
  Log:
  Move the deployment of the tomcat enabled sso to the build script
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +3 -18     \
jbosstest/src/main/org/jboss/test/web/test/Attic/SingleSignOnUnitTestCase.java  
  Index: SingleSignOnUnitTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/Attic/SingleSignOnUnitTestCase.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- SingleSignOnUnitTestCase.java	2 Jan 2004 00:06:50 -0000	1.1.2.1
  +++ SingleSignOnUnitTestCase.java	31 Jul 2004 15:43:49 -0000	1.1.2.2
  @@ -8,9 +8,7 @@
   package org.jboss.test.web.test;
   
   import java.net.HttpURLConnection;
  -import java.net.URL;
   
  -import javax.management.ObjectName;
   import org.apache.commons.httpclient.Cookie;
   import org.apache.commons.httpclient.Header;
   import org.apache.commons.httpclient.HttpClient;
  @@ -25,7 +23,7 @@
   /** Tests of web app single sign-on
    * 
    * @author Scott.Stark@jboss.org
  - * @version $Revision: 1.1.2.1 $
  + * @version $Revision: 1.1.2.2 $
    */
   public class SingleSignOnUnitTestCase extends JBossTestCase
   {
  @@ -70,7 +68,8 @@
            formPost, state);
         String response = formPost.getStatusText();
         getLog().debug("responseCode="+responseCode+", response="+response);
  -      assertTrue("Saw HTTP_MOVED_TEMP", responseCode == \
HttpURLConnection.HTTP_MOVED_TEMP);  +      assertTrue("Saw \
HTTP_MOVED_TEMP("+responseCode+")",  +         responseCode == \
HttpURLConnection.HTTP_MOVED_TEMP);  
         //  Follow the redirect to the index.html page
         Header location = formPost.getResponseHeader("Location");
  @@ -120,19 +119,6 @@
            protected void setUp() throws Exception
            {
               super.setUp();
  -            deploy("redeploy.sar");
  -            // Redeploy the web container with SSO enabled
  -            String webContainerXml =  \
                super.getResourceURL("web/sso/web-container-service.xml");
  -            URL descriptorURL = new URL(webContainerXml);
  -            String[] sig = {ObjectName.class.getName(), URL.class.getName()};
  -            Object[] args = {new ObjectName("jboss.web:service=WebServer"), \
                descriptorURL};
  -            getServer().invoke
  -            (
  -               new ObjectName("jboss.test:service=Redeployer"),
  -               "redeploy",
  -               args,
  -               sig
  -            );
               // Deploy the test ear
               deploy("web-sso.ear");
               // Make sure the security cache is clear
  @@ -140,7 +126,6 @@
            }
            protected void tearDown() throws Exception
            {
  -            undeploy("redeploy.sar");
               undeploy("web-sso.ear");
               super.tearDown();
            }
  
  
  


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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