]> source.dussan.org Git - archiva.git/commitdiff
fix compilation
authorOlivier Lamy <olamy@apache.org>
Thu, 15 Sep 2011 10:43:44 +0000 (10:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 15 Sep 2011 10:43:44 +0000 (10:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1171039 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/SearchActionTest.java

index f54f8847ab411efbae6f67362fa7d8365b12325a..8d871366c271101ac42a6bc1baf1a5565f9831d9 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.maven.archiva.web.action;
 
 import com.opensymphony.xwork2.Action;
 import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
-import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin;
 import org.apache.archiva.indexer.search.RepositorySearch;
 import org.apache.archiva.indexer.search.SearchFields;
 import org.apache.archiva.indexer.search.SearchResultHit;
@@ -133,7 +132,7 @@ public class SearchActionTest
         SearchResults results = new SearchResults();
         results.setLimits( limits );
         results.setTotalHits( 1 );
-        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
 
         userReposControl.expectAndReturn( userRepos.getObservableRepositoryIds( "user" ), selectedRepos );
 
@@ -182,7 +181,7 @@ public class SearchActionTest
         SearchResults results = new SearchResults();
         results.setLimits( limits );
         results.setTotalHits( 1 );
-        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
 
         userReposControl.expectAndReturn( userRepos.getObservableRepositoryIds( "user" ), selectedRepos );
 
@@ -284,7 +283,7 @@ public class SearchActionTest
         SearchResults results = new SearchResults();
         results.setLimits( limits );
         results.setTotalHits( 1 );
-        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
 
         List<String> selectedRepos = new ArrayList<String>();
         selectedRepos.add( "internal" );
@@ -331,7 +330,7 @@ public class SearchActionTest
         SearchResults results = new SearchResults();
         results.setLimits( limits );
         results.setTotalHits( 1 );
-        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+        results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
 
         List<String> selectedRepos = new ArrayList<String>();
         selectedRepos.add( "internal" );