mirror of https://github.com/apache/archiva.git
fix more unit tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fcf4879734
commit
44629e35f6
|
@ -98,7 +98,7 @@ public class RssFeedServlet
|
|||
servletAuth = wac.getBean( ServletAuthenticator.class );
|
||||
httpAuth = wac.getBean( "httpAuthenticator#basic", HttpAuthenticator.class );
|
||||
// TODO: what if there are other types?
|
||||
repositorySessionFactory = wac.getBean( RepositorySessionFactory.class );
|
||||
repositorySessionFactory = wac.getBean( "repositorySessionFactory", RepositorySessionFactory.class );
|
||||
}
|
||||
|
||||
public void doGet( HttpServletRequest req, HttpServletResponse res )
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SortRepositoriesActionTest
|
|||
|
||||
//action = (SortRepositoriesAction) lookup( Action.class.getName(), "sortRepositoriesAction" );
|
||||
|
||||
action = (SortRepositoriesAction) getActionProxy( "sortDownRepositoryFromGroup.action" ).getAction();
|
||||
action = (SortRepositoriesAction) getActionProxy( "/admin/sortDownRepositoryFromGroup.action" ).getAction();
|
||||
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
|
||||
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
|
||||
action.setArchivaConfiguration( archivaConfiguration );
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<context-param>
|
||||
<param-name>contextClass</param-name>
|
||||
<param-value>org.codehaus.redback.components.springutils.CachingWebApplicationContext</param-value>
|
||||
</context-param>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>RssFeedServlet</servlet-name>
|
||||
<servlet-class>org.apache.maven.archiva.web.rss.RssFeedServlet</servlet-class>
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<context-param>
|
||||
<param-name>contextClass</param-name>
|
||||
<param-value>org.codehaus.redback.components.springutils.CachingWebApplicationContext</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>
|
||||
|
|
Loading…
Reference in New Issue