summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames William Dumay <jdumay@apache.org>2008-12-14 23:16:38 +0000
committerJames William Dumay <jdumay@apache.org>2008-12-14 23:16:38 +0000
commitad8ffba93ba0a5800703f452f94615e100599ab8 (patch)
tree296afc40b8c9fc2a68546af62bf407e0a1d79c27
parentfabbab74b2bb33516f0cdf3f0f60f6b467d2b9e9 (diff)
downloadarchiva-ad8ffba93ba0a5800703f452f94615e100599ab8.tar.gz
archiva-ad8ffba93ba0a5800703f452f94615e100599ab8.zip
Uncomment test
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-search-improvements@726574 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java62
1 files changed, 31 insertions, 31 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
index 27c840b73..890cdfa52 100644
--- a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
+++ b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
@@ -185,38 +185,38 @@ public class DefaultCrossRepositorySearchTest
assertSearchResults( expectedRepos, new ArrayList<SearchResultHit>(), search, "monosodium", null, false );
}
-// public void testSearchForClassesAndPackages()
-// throws Exception
-// {
-// CrossRepositorySearch search = lookupCrossRepositorySearch();
-//
-// String expectedRepos[] = new String[] {
-// TEST_DEFAULT_REPO_ID
+ public void testSearchForClassesAndPackages()
+ throws Exception
+ {
+ CrossRepositorySearch search = lookupCrossRepositorySearch();
+
+ String expectedRepos[] = new String[] {
+ TEST_DEFAULT_REPO_ID
+ };
+
+// String expectedResults[] = new String[] {
+// "archiva-common-1.0.jar"
// };
-//
-//// String expectedResults[] = new String[] {
-//// "archiva-common-1.0.jar"
-//// };
-//
-// ArrayList<SearchResultHit> expectedHits = new ArrayList<SearchResultHit>();
-//
-// // class with packagename search
-// assertSearchResults( expectedRepos, expectedHits, search,
-// "org.apache.maven.archiva.common.utils.BaseFile", null, true );
-// // class name search
-// assertSearchResults( expectedRepos, expectedHits, search,
-// "BaseFile", null, true );
-//
-//// String expectedMethodSearchResults[] = new String[] {
-//// "continuum-webapp-1.0.3-SNAPSHOT.war"
-//// };
-//
-// ArrayList<SearchResultHit> expectedMethodSearchResults = new ArrayList<SearchResultHit>();
-//
-// // method search
-// assertSearchResults( expectedRepos, expectedMethodSearchResults, search,
-// "org.apache.maven.continuum.web.action.BuildDefinitionAction.isBuildFresh", null, true );
-// }
+
+ ArrayList<SearchResultHit> expectedHits = new ArrayList<SearchResultHit>();
+
+ // class with packagename search
+ assertSearchResults( expectedRepos, expectedHits, search,
+ "org.apache.maven.archiva.common.utils.BaseFile", null, true );
+ // class name search
+ assertSearchResults( expectedRepos, expectedHits, search,
+ "BaseFile", null, true );
+
+// String expectedMethodSearchResults[] = new String[] {
+// "continuum-webapp-1.0.3-SNAPSHOT.war"
+// };
+
+ ArrayList<SearchResultHit> expectedMethodSearchResults = new ArrayList<SearchResultHit>();
+
+ // method search
+ assertSearchResults( expectedRepos, expectedMethodSearchResults, search,
+ "org.apache.maven.continuum.web.action.BuildDefinitionAction.isBuildFresh", null, true );
+ }
public void testExecuteFilteredSearch()
throws Exception