mirror of https://github.com/apache/archiva.git
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:
parent
44629e35f6
commit
4db8075bc6
|
@ -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 );
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue