From ad8ffba93ba0a5800703f452f94615e100599ab8 Mon Sep 17 00:00:00 2001 From: James William Dumay Date: Sun, 14 Dec 2008 23:16:38 +0000 Subject: [PATCH] Uncomment test git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-search-improvements@726574 13f79535-47bb-0310-9956-ffa450edef68 --- .../DefaultCrossRepositorySearchTest.java | 62 +++++++++---------- 1 file 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(), 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 expectedHits = new ArrayList(); -// -// // 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 expectedMethodSearchResults = new ArrayList(); -// -// // method search -// assertSearchResults( expectedRepos, expectedMethodSearchResults, search, -// "org.apache.maven.continuum.web.action.BuildDefinitionAction.isBuildFresh", null, true ); -// } + + ArrayList expectedHits = new ArrayList(); + + // 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 expectedMethodSearchResults = new ArrayList(); + + // method search + assertSearchResults( expectedRepos, expectedMethodSearchResults, search, + "org.apache.maven.continuum.web.action.BuildDefinitionAction.isBuildFresh", null, true ); + } public void testExecuteFilteredSearch() throws Exception -- 2.39.5