geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r1005564 - /geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
Date Thu, 07 Oct 2010 18:27:55 GMT
Author: vamsic007
Date: Thu Oct  7 18:27:55 2010
New Revision: 1005564

URL: http://svn.apache.org/viewvc?rev=1005564&view=rev
Log:
Formatting change

Modified:
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java

Modified: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java?rev=1005564&r1=1005563&r2=1005564&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
(original)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
Thu Oct  7 18:27:55 2010
@@ -24,59 +24,59 @@ public class SecurityEJBTest extends Sel
           
     @Test
     public void testEJBSecurityAnnonymous() throws Exception {
-    	 String appContextStr = System.getProperty("appContext");
-    	 selenium.open(baseURL+appContextStr);
-		 selenium.click("link=Annonymous");
-		 selenium.waitForPageToLoad("30000");
-		 selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
-		 selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
-		 selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
-		 selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
-		 selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
-		 selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
-		 selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
-		 selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
-		 selenium.click("link=Logout");
+        String appContextStr = System.getProperty("appContext");
+        selenium.open(baseURL+appContextStr);
+        selenium.click("link=Annonymous");
+        selenium.waitForPageToLoad("30000");
+        selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+        selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
+        selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
+        selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+        selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
+        selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
+        selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
+        selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+        selenium.click("link=Logout");
     
     }
 
     @Test
     public void testEJBSecurityAdmin() throws Exception {
-    	 String appContextStr = System.getProperty("appContext");
-    	 selenium.open(baseURL+appContextStr);
-		selenium.click("link=Admin");
-		selenium.waitForPageToLoad("30000");
-		selenium.type("j_username", "george");
-		selenium.type("j_password", "bone");
-		selenium.click("//input[@value='Login']");
-		selenium.waitForPageToLoad("30000");
-		selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
-		selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
-		selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:true");
-		selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
-		selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
-		selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
-		selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:true::SecurityBean.rolesAllowedAdminMethod:false");
-		selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
-		selenium.click("link=Logout");
+        String appContextStr = System.getProperty("appContext");
+        selenium.open(baseURL+appContextStr);
+        selenium.click("link=Admin");
+        selenium.waitForPageToLoad("30000");
+        selenium.type("j_username", "george");
+        selenium.type("j_password", "bone");
+        selenium.click("//input[@value='Login']");
+        selenium.waitForPageToLoad("30000");
+        selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+        selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
+        selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:true");
+        selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+        selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
+        selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
+        selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:true::SecurityBean.rolesAllowedAdminMethod:false");
+        selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+        selenium.click("link=Logout");
     }
     @Test
     public void testEJBSecurityUser() throws Exception {
-    	String appContextStr = System.getProperty("appContext");
-    	selenium.open(baseURL+appContextStr);
-		selenium.click("link=User");
-		selenium.waitForPageToLoad("30000");
-		selenium.type("j_username", "metro");
-		selenium.type("j_password", "mouse");
-		selenium.click("//input[@value='Login']");
-		selenium.waitForPageToLoad("30000");
-		selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
-		selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:true");
-		selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
-		selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
-		selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:true::SecurityBean.rolesAllowedUserMethod:true");
-		selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
-		selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
-		selenium.click("link=Logout");
+        String appContextStr = System.getProperty("appContext");
+        selenium.open(baseURL+appContextStr);
+        selenium.click("link=User");
+        selenium.waitForPageToLoad("30000");
+        selenium.type("j_username", "metro");
+        selenium.type("j_password", "mouse");
+        selenium.click("//input[@value='Login']");
+        selenium.waitForPageToLoad("30000");
+        selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+        selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:true");
+        selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
+        selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+        selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:true::SecurityBean.rolesAllowedUserMethod:true");
+        selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
+        selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+        selenium.click("link=Logout");
     }
 }



Mime
View raw message