geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r788304 - in /geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security: TestConsoleSecurity.java TestSecurity.java
Date Thu, 25 Jun 2009 09:26:46 GMT
Author: xuhaihong
Date: Thu Jun 25 09:26:45 2009
New Revision: 788304

URL: http://svn.apache.org/viewvc?rev=788304&view=rev
Log:
Fix tests of security-testsuite, add logout action after the successful login

Modified:
    geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java
    geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestSecurity.java

Modified: geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java?rev=788304&r1=788303&r2=788304&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java
(original)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java
Thu Jun 25 09:26:45 2009
@@ -35,6 +35,9 @@
         selenium.click("submit");
         waitForPageLoad();
         assertTrue(selenium.isTextPresent("Deploy New"));
+        selenium.click("//a[contains(@href, '/console/logout.jsp')]");
+        waitForPageLoad();
+        assertEquals("Geronimo Console Login", selenium.getTitle());
     }
 
     @Test

Modified: geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestSecurity.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestSecurity.java?rev=788304&r1=788303&r2=788304&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestSecurity.java
(original)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestSecurity.java
Thu Jun 25 09:26:45 2009
@@ -33,6 +33,7 @@
         selenium.click("submit");
         waitForPageLoad();
         assertEquals("hello world.", selenium.getText("xpath=/html"));
+        selenium.deleteAllVisibleCookies();
     }
 
     @Test



Mime
View raw message