]> source.dussan.org Git - archiva.git/commitdiff
fix the repository test
authorBrett Porter <brett@apache.org>
Thu, 14 Jan 2010 02:24:25 +0000 (02:24 +0000)
committerBrett Porter <brett@apache.org>
Thu, 14 Jan 2010 02:24:25 +0000 (02:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@899032 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java

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