fix more unit tests

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-13 22:23:33 +00:00
parent 44629e35f6
commit 4db8075bc6
2 changed files with 6 additions and 1 deletions

View 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 );

View 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>