From e1d9dfbee5f1cb8cc250df15beda9ea8c938080c Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 14 Jun 2011 16:51:45 +0000 Subject: [PATCH] fix junit GenerateReportActionTest git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135696 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/action/reports/GenerateReportActionTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/reports/GenerateReportActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/reports/GenerateReportActionTest.java index c1144c2a9..6bc27bd8f 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/reports/GenerateReportActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/reports/GenerateReportActionTest.java @@ -93,9 +93,8 @@ public class GenerateReportActionTest RepositorySession repositorySession = mock( RepositorySession.class ); when( repositorySession.getRepository() ).thenReturn( metadataRepository ); - //TestRepositorySessionFactory factory = (TestRepositorySessionFactory) lookup( RepositorySessionFactory.class ); - - TestRepositorySessionFactory factory = new TestRepositorySessionFactory(); + TestRepositorySessionFactory factory = + applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class ); factory.setRepositorySession( repositorySession ); } -- 2.39.5