archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdu...@apache.org
Subject svn commit: r726574 - /archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
Date Sun, 14 Dec 2008 23:16:44 GMT
Author: jdumay
Date: Sun Dec 14 15:16:38 2008
New Revision: 726574

URL: http://svn.apache.org/viewvc?rev=726574&view=rev
Log:
Uncomment test

Modified:
    archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java

Modified: archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java?rev=726574&r1=726573&r2=726574&view=diff
==============================================================================
--- archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
(original)
+++ archiva/branches/archiva-search-improvements/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
Sun Dec 14 15:16:38 2008
@@ -185,38 +185,38 @@
         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"
+//        };
+
+        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"
 //        };
-//
-////        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> 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



Mime
View raw message