mirror of https://github.com/apache/archiva.git
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:
parent
edf6aa2ced
commit
ba1abce283
|
@ -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." );
|
||||||
|
|
Loading…
Reference in New Issue