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( ) );
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( );
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 )
{
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 );