continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r489873 - /maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java
Date Sat, 23 Dec 2006 09:44:31 GMT
Author: evenisse
Date: Sat Dec 23 01:44:30 2006
New Revision: 489873

URL: http://svn.apache.org/viewvc?view=rev&rev=489873
Log:
security methods are now in maven-web-ui-tests

Modified:
    maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java

Modified: maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java?view=diff&rev=489873&r1=489872&r2=489873
==============================================================================
--- maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java
(original)
+++ maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractContinuumTestCase.java
Sat Dec 23 01:44:30 2006
@@ -291,6 +291,7 @@
         submit();
         waitPage();
 
+        //TODO: Check the result Page
     }
 
     public void assertAddProjectGroupPage()
@@ -494,80 +495,6 @@
 
         assertElementPresent( "saveProjectGroup_0" );
         clickButtonWithValue( "Save" );
-    }
-
-    //////////////////////////////////////
-    // My Account
-    //////////////////////////////////////
-    public void goToMyAccount()
-    {
-        clickLinkWithText( "Edit Details" );
-    }
-
-    public void assertMyAccountDetails( String username, String newFullName, String newEmailAddress
)
-        throws Exception
-    {
-        assertPage( "Account Details" );
-
-        isTextPresent( "Username" );
-        assertTextPresent( "Username" );
-        assertElementPresent( "registerForm_user_username" );
-        assertCellValueFromTable( username, "//form/table", 0, 1 );
-
-        assertTextPresent( "Full Name" );
-        assertElementPresent( "user.fullName" );
-        assertEquals( newFullName, getFieldValue( "user.fullName" ) );
-
-        assertTextPresent( "Email Address" );
-        assertElementPresent( "user.email" );
-        assertEquals( newEmailAddress, getFieldValue( "user.email" ) );
-
-        assertTextPresent( "Password" );
-        assertElementPresent( "user.password" );
-
-        assertTextPresent( "Confirm Password" );
-        assertElementPresent( "user.confirmPassword" );
-
-        assertTextPresent( "Last Password Change" );
-        assertElementPresent( "registerForm_user_timestampLastPasswordChange" );
-
-    }
-
-    public void editMyUserInfo( String newFullName, String newEmailAddress, String newPassword,
-                                String confirmNewPassword )
-    {
-        goToMyAccount();
-
-        setFieldValue( "user.fullName", newFullName );
-        setFieldValue( "user.email", newEmailAddress );
-        setFieldValue( "user.password", newPassword );
-        setFieldValue( "user.confirmPassword", confirmNewPassword );
-    }
-
-    //////////////////////////////////////
-    // Users
-    //////////////////////////////////////
-    public void assertUsersListPage()
-    {
-        assertPage( "[Admin] User List" );
-    }
-
-    public void assertCreateUserPage()
-    {
-        assertPage( "[Admin] User Create" );
-        assertTextPresent( "Username" );
-        assertTextPresent( "Full Name" );
-        assertTextPresent( "Email Address" );
-        assertTextPresent( "Password" );
-        assertTextPresent( "Confirm Password" );
-    }
-
-    public void assertDeleteUserPage( String username )
-    {
-        assertPage( "[Admin] User Delete" );
-        assertTextPresent( "[Admin] User Delete" );
-        assertTextPresent( "The following user will be deleted: " + username );
-        assertButtonWithValuePresent( "Delete User" );
     }
 
     public void tearDown()



Mime
View raw message