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:
Olivier Lamy 2011-06-14 16:51:45 +00:00
parent d36818c0fe
commit e1d9dfbee5
1 changed files with 2 additions and 3 deletions

View File

@ -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 );
} }