]> source.dussan.org Git - archiva.git/commitdiff
Uncomment test
authorJames William Dumay <jdumay@apache.org>
Sun, 14 Dec 2008 23:16:38 +0000 (23:16 +0000)
committerJames William Dumay <jdumay@apache.org>
Sun, 14 Dec 2008 23:16:38 +0000 (23:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-search-improvements@726574 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java

index 27c840b73909999a91c9dc50680dff4293952fbb..890cdfa525af9fd6313802a82c0c95c28f9bc3e1 100644 (file)
@@ -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