From: Olivier Lamy Date: Mon, 13 Jun 2011 22:23:33 +0000 (+0000) Subject: fix more unit tests X-Git-Tag: archiva-1.4-M1~650 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4db8075bc60e3b284a346740140df9c69df6ce61;p=archiva.git fix more unit tests git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135326 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/BrowseActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/BrowseActionTest.java index 9bead4d79..3008a68f1 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/BrowseActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/BrowseActionTest.java @@ -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 ); diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/spring-context.xml index f4d83a652..e828f4c92 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/spring-context.xml @@ -33,4 +33,9 @@ + + + + + \ No newline at end of file