From: Brett Porter Date: Fri, 20 Jan 2012 13:20:57 +0000 (+0000) Subject: update label that changed in Redback X-Git-Tag: archiva-1.4-M3~1537 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30b708470ad3003d7c0a5801babe1164972a93d2;p=archiva.git update label that changed in Redback git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233894 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java index 06f71f8ea..a4c87e1e6 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/UserRolesTest.java @@ -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" );