fix the repository test

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@899032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-01-14 02:24:25 +00:00
parent edf6aa2ced
commit ba1abce283
1 changed files with 1 additions and 3 deletions

View File

@ -26,7 +26,6 @@ import org.testng.annotations.Test;
public class RepositoryTest public class RepositoryTest
extends AbstractRepositoryTest extends AbstractRepositoryTest
{ {
@Test(dependsOnMethods = { "testWithCorrectUsernamePassword" } )
public void testAddManagedRepoValidValues() public void testAddManagedRepoValidValues()
{ {
goToRepositoriesPage(); goToRepositoriesPage();
@ -37,10 +36,9 @@ public class RepositoryTest
assertRepositoriesPage(); assertRepositoriesPage();
} }
@Test(dependsOnMethods = { "testAddManagedRepoValidValues" } )
public void testAddManagedRepoInvalidValues() public void testAddManagedRepoInvalidValues()
{ {
assertRepositoriesPage(); goToRepositoriesPage();
clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRepository.action']" ); clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRepository.action']" );
addManagedRepository( "", "" , "" , "", "Maven 2.x Repository", "", "", "" ); addManagedRepository( "", "" , "" , "", "Maven 2.x Repository", "", "", "" );
assertTextPresent( "You must enter a repository identifier." ); assertTextPresent( "You must enter a repository identifier." );