summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorJevica Arianne B. Zurbano <jzurbano@apache.org>2009-09-25 03:55:57 +0000
committerJevica Arianne B. Zurbano <jzurbano@apache.org>2009-09-25 03:55:57 +0000
commitb24d5ceb4b46f92a4988d601b9ff7b90303abd9f (patch)
tree44a0a0e569a905653cb5465e68f60fe8a812bcb5 /archiva-modules
parent185d83243cec5bf5f26755c10fc8bcf5f925b6fb (diff)
downloadarchiva-b24d5ceb4b46f92a4988d601b9ff7b90303abd9f.tar.gz
archiva-b24d5ceb4b46f92a4988d601b9ff7b90303abd9f.zip
[MRM-1257] - Selenium Test for accessing bundled repositories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@818710 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
index a0ed9b0a6..fbeb00cca 100644
--- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
+++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java
@@ -144,4 +144,28 @@ public class RepositoryTest
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: /" );
+ }
}