You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by br...@apache.org on 2012/01/20 14:20:57 UTC

svn commit: r1233894 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java

Author: brett
Date: Fri Jan 20 13:20:57 2012
New Revision: 1233894

URL: http://svn.apache.org/viewvc?rev=1233894&view=rev
Log:
update label that changed in Redback

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java?rev=1233894&r1=1233893&r2=1233894&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java Fri Jan 20 13:20:57 2012
@@ -22,11 +22,13 @@ package org.apache.archiva.web.test;
 import org.apache.archiva.web.test.parent.AbstractArchivaTest;
 import org.testng.annotations.Test;
 
-@Test( groups = { "userroles" }, dependsOnMethods = { "testWithCorrectUsernamePassword" } )
+@Test( groups = {"userroles"}, dependsOnMethods = {"testWithCorrectUsernamePassword"} )
 public class UserRolesTest
     extends AbstractArchivaTest
 {
 
+    private static final String EDIT_ROLES = "Edit Roles";
+
     public void testBasicAddDeleteUser()
     {
         username = getProperty( "GUEST_USERNAME" );
@@ -38,7 +40,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testBasicAddDeleteUser" } )
+    @Test( dependsOnMethods = {"testBasicAddDeleteUser"} )
     public void testUserWithGuestRole()
     {
         username = getProperty( "GUEST_USERNAME" );
@@ -46,7 +48,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -59,7 +61,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithGuestRole" } )
+    @Test( dependsOnMethods = {"testUserWithGuestRole"} )
     public void testUserWithRegisteredUserRole()
     {
         username = getProperty( "REGISTERED_USERNAME" );
@@ -67,7 +69,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -80,7 +82,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithRegisteredUserRole" } )
+    @Test( dependsOnMethods = {"testUserWithRegisteredUserRole"} )
     public void testUserWithSysAdminUserRole()
     {
         username = getProperty( "SYSAD_USERNAME" );
@@ -88,7 +90,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -101,7 +103,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithSysAdminUserRole" } )
+    @Test( dependsOnMethods = {"testUserWithSysAdminUserRole"} )
     public void testUserWithUserAdminUserRole()
     {
         username = getProperty( "USERADMIN_USERNAME" );
@@ -109,7 +111,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -122,7 +124,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithUserAdminUserRole" } )
+    @Test( dependsOnMethods = {"testUserWithUserAdminUserRole"} )
     public void testUserWithGlobalRepoManagerRole()
     {
         username = getProperty( "GLOBALREPOMANAGER_USERNAME" );
@@ -130,7 +132,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -143,7 +145,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithGlobalRepoManagerRole" } )
+    @Test( dependsOnMethods = {"testUserWithGlobalRepoManagerRole"} )
     public void testUserWithGlobalRepoObserverRole()
     {
         username = getProperty( "GLOBALREPOOBSERVER_USERNAME" );
@@ -151,7 +153,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -164,7 +166,7 @@ public class UserRolesTest
         login( getAdminUsername(), getAdminPassword() );
     }
 
-    @Test( dependsOnMethods = { "testUserWithGlobalRepoObserverRole" } )
+    @Test( dependsOnMethods = {"testUserWithGlobalRepoObserverRole"} )
     public void testUserWithRepoManagerInternalRole()
     {
         username = getProperty( "REPOMANAGER_INTERNAL_USERNAME" );
@@ -172,7 +174,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkResourceRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
 
@@ -198,7 +200,7 @@ public class UserRolesTest
      * getAdminUsername() , getAdminPassword() ); }
      */
 
-    @Test( dependsOnMethods = { "testUserWithRepoManagerInternalRole" } )
+    @Test( dependsOnMethods = {"testUserWithRepoManagerInternalRole"} )
     public void testUserWithRepoObserverInternalRole()
     {
         username = getProperty( "REPOOBSERVER_INTERNAL_USERNAME" );
@@ -206,7 +208,7 @@ public class UserRolesTest
 
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         clickLinkWithText( username );
-        clickLinkWithText( "Edit Roles" );
+        clickLinkWithText( EDIT_ROLES );
         checkResourceRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );