From 8b96e975856d8c3aea7c2d7ef2d03f3fe8a0432e Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 15 Sep 2011 10:43:44 +0000 Subject: [PATCH] fix compilation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1171039 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/archiva/web/action/SearchActionTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/SearchActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/SearchActionTest.java index f54f8847a..8d871366c 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/SearchActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/SearchActionTest.java @@ -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 selectedRepos = new ArrayList(); 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 selectedRepos = new ArrayList(); selectedRepos.add( "internal" );