]> source.dussan.org Git - archiva.git/commitdiff
fix selenium test due to i18n change
authorOlivier Lamy <olamy@apache.org>
Wed, 29 Feb 2012 19:46:04 +0000 (19:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 29 Feb 2012 19:46:04 +0000 (19:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295238 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/ArchivaConfigurationTest.java
archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/parent/AbstractArchivaTest.java

index 2ecdc0dc668f3b5a841bdfdca72634ed8dcfdb62..54bad1b24de0401dfe27f8b25330653def96b760 100644 (file)
@@ -306,8 +306,7 @@ public class ArchivaConfigurationTest
         userFile.getParentFile( ).mkdirs( );
         FileUtils.writeStringToFile( userFile, "<configuration/>", null );
 
-        ArchivaConfiguration archivaConfiguration =
-            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "test-save-user" );
+        ArchivaConfiguration archivaConfiguration = lookup( ArchivaConfiguration.class, "test-save-user" );
 
         Configuration configuration = new Configuration( );
         configuration.setWebapp( new WebappConfiguration( ) );
@@ -336,8 +335,7 @@ public class ArchivaConfigurationTest
         userFile.delete( );
         assertFalse( userFile.exists( ) );
 
-        ArchivaConfiguration archivaConfiguration =
-            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "test-save-user-defaults" );
+        ArchivaConfiguration archivaConfiguration = lookup( ArchivaConfiguration.class, "test-save-user-defaults" );
 
         archivaConfiguration.reload( );
 
index dd5dab4c3fad2e7a3d4c32ad808be27ff0685c1d..fa75900259d9d41dd19a24821059cf65c5e9a70f 100644 (file)
@@ -235,8 +235,8 @@ public abstract class AbstractArchivaTest
 
         clickLinkWithLocator( "user-create-form-register-button", true );
 
-        assertTextPresent( "user created:"+userName );
-        assertElementPresent( "users-grid-user-id-"+userName );
+        assertTextPresent( "User " + userName + " created." );
+        assertElementPresent( "users-grid-user-id-" + userName );
 
         if ( valid )
         {
@@ -264,12 +264,11 @@ public abstract class AbstractArchivaTest
         clickLinkWithLocator( "users-grid-delete-" + userName );
 
         clickLinkWithLocator( "dialog-confirm-modal-ok" );
-
-        assertTextPresent( "user " + userName + " deleted" );
+        assertTextPresent( "User " + userName + " deleted." );
 
         clickLinkWithLocator( "alert-message-success-close-a" );
 
-        assertElementNotPresent( "users-grid-user-id-"+userName );
+        assertElementNotPresent( "users-grid-user-id-" + userName );
         assertTextNotPresent( fullName );