archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzurb...@apache.org
Subject svn commit: r818710 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
Date Fri, 25 Sep 2009 03:55:57 GMT
Author: jzurbano
Date: Fri Sep 25 03:55:57 2009
New Revision: 818710

URL: http://svn.apache.org/viewvc?rev=818710&view=rev
Log:
[MRM-1257] - Selenium Test for accessing bundled repositories

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java?rev=818710&r1=818709&r2=818710&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
Fri Sep 25 03:55:57 2009
@@ -144,4 +144,28 @@
 		addRemoteRepository( "remoterepo" , "Remote Repository Sample" , "http://repository.codehaus.org/org/codehaus/mojo/"
, "" , "" , "" , "Maven 2.x Repository" );
 		assertTextPresent( "Remote Repository Sample" );
 	}
+    
+    // *** BUNDLED REPOSITORY TEST ***
+    
+    @Test ( dependsOnMethods = { "testWithCorrectUsernamePassword" }, alwaysRun = true )
+    public void testBundledRepository()
+    {
+        String repo1 = baseUrl + "repository/internal/";
+        String repo2 = baseUrl + "repository/snapshots/";
+        
+        assertRepositoryAccess( repo1 );
+        assertRepositoryAccess( repo2 );
+        
+        getSelenium().open( "/archiva" );
+    }
+    
+    private void assertRepositoryAccess( String repo )
+    {
+        getSelenium().open( "/archiva" );
+        goToRepositoriesPage();
+        assertLinkPresent( repo );
+        clickLinkWithText( repo );
+        assertPage( "Collection: /" );
+        assertTextPresent( "Collection: /" );
+    }
 }



Mime
View raw message