[jboss-cvs] Picketlink SVN: r1069 - integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 6 12:09:32 EDT 2011


Author: anil.saldhana at jboss.com
Date: 2011-07-06 12:09:32 -0400 (Wed, 06 Jul 2011)
New Revision: 1069

Modified:
   integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2MixedBindingGlobalLogOutUnitTestCase.java
   integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2PostBindingGlobalLogOutUnitTestCase.java
   integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2RedirectBindingGlobalLogOutUnitTestCase.java
Log:
add sys out statements

Modified: integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2MixedBindingGlobalLogOutUnitTestCase.java
===================================================================
--- integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2MixedBindingGlobalLogOutUnitTestCase.java	2011-07-06 15:29:51 UTC (rev 1068)
+++ integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2MixedBindingGlobalLogOutUnitTestCase.java	2011-07-06 16:09:32 UTC (rev 1069)
@@ -70,6 +70,7 @@
    
    private void hitURLs( String url1, String url2, String url3, String url4 ) throws Exception
    {
+      System.out.println("Trying "+ url1);
       //Sales post Application Login
       WebRequest serviceRequest1 = new GetMethodWebRequest( url1 );
       WebConversation webConversation = new WebConversation();
@@ -85,30 +86,38 @@
       assertTrue( " Reached the sales index page ", webResponse.getText().contains( "SalesTool" ));
       
       //Employee post Application Login
+      System.out.println("Trying "+ url2);
       webResponse = webConversation.getResponse( url2 );
       assertTrue( " Reached the employee index page ", webResponse.getText().contains( "EmployeeDashboard" ));
       
       //Sales Application Login
+      System.out.println("Trying "+ url3);
       webResponse = webConversation.getResponse( url3 );
       assertTrue( " Reached the employee index page ", webResponse.getText().contains( "SalesTool" ));
       
       //Employee Application Login
+      System.out.println("Trying "+ url4);
       webResponse = webConversation.getResponse( url4 );
       assertTrue( " Reached the employee index page ", webResponse.getText().contains( "EmployeeDashboard" ));
       
       //Logout from sales
+      System.out.println("Trying "+ url1 + LOGOUT_URL);
       webResponse = webConversation.getResponse( url1 + LOGOUT_URL ); 
       assertTrue( "Reached logged out page", webResponse.getText().contains( "logged" ) );
       
       //Hit the Sales Apps again
+      System.out.println("Trying "+ url1);
       webResponse = webConversation.getResponse( url1 );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));
+      System.out.println("Trying "+ url3);
       webResponse = webConversation.getResponse( url3 );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));
  
       //Hit the Employee Apps again
+      System.out.println("Trying "+ url2);
       webResponse = webConversation.getResponse( url2 );
-      assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" )); 
+      assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));
+      System.out.println("Trying "+ url2); 
       webResponse = webConversation.getResponse( url2 );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));  
    }

Modified: integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2PostBindingGlobalLogOutUnitTestCase.java
===================================================================
--- integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2PostBindingGlobalLogOutUnitTestCase.java	2011-07-06 15:29:51 UTC (rev 1068)
+++ integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2PostBindingGlobalLogOutUnitTestCase.java	2011-07-06 16:09:32 UTC (rev 1069)
@@ -53,9 +53,9 @@
     
    @Test
    public void testSAMLPostBindingGlobalLogOut() throws Exception
-   {
-      
-      //Sales Application Login
+   { 
+      //Sales Application Login 
+      System.out.println("Trying "+ getService1URL());
       WebRequest serviceRequest1 = new GetMethodWebRequest( getService1URL() );
       WebConversation webConversation = new WebConversation();
       
@@ -70,18 +70,23 @@
       assertTrue( " Reached the sales index page ", webResponse.getText().contains( "SalesTool" ));
       
       //Employee Application Login
+      System.out.println("Trying "+ getService2URL());
       webResponse = webConversation.getResponse( getService2URL() );
       assertTrue( " Reached the employee index page ", webResponse.getText().contains( "EmployeeDashboard" ));
       
       //Logout from sales
+
+      System.out.println("Trying "+ getService1URL() + LOGOUT_URL);
       webResponse = webConversation.getResponse( getService1URL() + LOGOUT_URL ); 
       assertTrue( "Reached logged out page", webResponse.getText().contains( "logged" ) );
       
       //Hit the Sales App again
+      System.out.println("Trying "+ getService1URL());
       webResponse = webConversation.getResponse( getService1URL() );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));
  
       //Hit the Employee App again
+      System.out.println("Trying "+ getService2URL());
       webResponse = webConversation.getResponse( getService2URL() );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));     
    }

Modified: integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2RedirectBindingGlobalLogOutUnitTestCase.java
===================================================================
--- integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2RedirectBindingGlobalLogOutUnitTestCase.java	2011-07-06 15:29:51 UTC (rev 1068)
+++ integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2RedirectBindingGlobalLogOutUnitTestCase.java	2011-07-06 16:09:32 UTC (rev 1069)
@@ -57,6 +57,8 @@
       String LOGOUT_URL = "?GLO=true";
       
       //Sales Application Login
+
+      System.out.println("Trying "+ SERVICE_1_URL);
       WebRequest serviceRequest1 = new GetMethodWebRequest( SERVICE_1_URL );
       WebConversation webConversation = new WebConversation();
       
@@ -71,19 +73,23 @@
       assertTrue( " Reached the sales index page ", webResponse.getText().contains( "SalesTool" ));
       
       //Employee Application Login
+      System.out.println("Trying "+ SERVICE_2_URL);
       webResponse = webConversation.getResponse( SERVICE_2_URL );
       assertTrue( " Reached the employee index page ", webResponse.getText().contains( "EmployeeDashboard" ));
       
       //Logout from sales
+      System.out.println("Trying "+ SERVICE_1_URL + LOGOUT_URL);
       webResponse = webConversation.getResponse( SERVICE_1_URL + LOGOUT_URL ); 
       assertTrue( "Reached logged out page", webResponse.getText().contains( "logged" ) );
       
       //Hit the Sales App again
+      System.out.println("Trying "+ SERVICE_1_URL);
       webResponse = webConversation.getResponse( SERVICE_1_URL );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));
  
       //Hit the Employee App again
+      System.out.println("Trying "+ SERVICE_2_URL);
       webResponse = webConversation.getResponse( SERVICE_2_URL );
       assertTrue( " Reached the Login page ", webResponse.getText().contains( "Login" ));     
    }
-}
+}
\ No newline at end of file



More information about the jboss-cvs-commits mailing list