mirror of https://github.com/apache/archiva.git
fix junit GenerateReportActionTest
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d36818c0fe
commit
e1d9dfbee5
|
@ -93,9 +93,8 @@ public class GenerateReportActionTest
|
||||||
RepositorySession repositorySession = mock( RepositorySession.class );
|
RepositorySession repositorySession = mock( RepositorySession.class );
|
||||||
when( repositorySession.getRepository() ).thenReturn( metadataRepository );
|
when( repositorySession.getRepository() ).thenReturn( metadataRepository );
|
||||||
|
|
||||||
//TestRepositorySessionFactory factory = (TestRepositorySessionFactory) lookup( RepositorySessionFactory.class );
|
TestRepositorySessionFactory factory =
|
||||||
|
applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class );
|
||||||
TestRepositorySessionFactory factory = new TestRepositorySessionFactory();
|
|
||||||
factory.setRepositorySession( repositorySession );
|
factory.setRepositorySession( repositorySession );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue