]> source.dussan.org Git - archiva.git/commitdiff
fix more unit tests
authorOlivier Lamy <olamy@apache.org>
Mon, 13 Jun 2011 22:23:33 +0000 (22:23 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 13 Jun 2011 22:23:33 +0000 (22:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135326 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/BrowseActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/resources/spring-context.xml

index 9bead4d79473dd1c7969e802a6750929e14408b4..3008a68f16af47970ea2747579e816c707927207 100644 (file)
@@ -391,7 +391,7 @@ public class BrowseActionTest
     {
         super.setUp();
         //action = (BrowseAction) lookup( Action.class, ACTION_HINT );
-        action = (BrowseAction) getActionProxy( "browse.action" ).getAction();
+        action = (BrowseAction) getActionProxy( "/browse.action" ).getAction();
         metadataResolver = new TestMetadataResolver();
         RepositorySession repositorySession = mock( RepositorySession.class );
         when( repositorySession.getResolver() ).thenReturn( metadataResolver );
index f4d83a652a821ebfda0c125678c772f3b6e44b54..e828f4c924c59c54045467adc38fe693a8babf3c 100644 (file)
@@ -33,4 +33,9 @@
   <context:component-scan base-package="org.apache.archiva.metadata.repository.memory"/>
 
   <alias name="repositorySessionFactory#test" alias="repositorySessionFactory"/>
+
+  <bean name="userRepositories#test" class="org.apache.maven.archiva.security.UserRepositoriesStub"/>
+
+  <alias name="userRepositories#test" alias="userRepositories"/>
+
 </beans>
\ No newline at end of file