From ff777a898a72725c11c142d08f00f40caff24e66 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 30 Nov 2009 03:14:40 +0000 Subject: [PATCH] clean up some comments that aren't needed git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@885320 13f79535-47bb-0310-9956-ffa450edef68 --- .../services/SearchServiceImplTest.java | 65 ------------------- 1 file changed, 65 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImplTest.java b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImplTest.java index 062aaf2af..c883d1e68 100644 --- a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImplTest.java +++ b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImplTest.java @@ -245,65 +245,6 @@ public class SearchServiceImplTest artifact.getRepositoryId() ); } - /* - * quick/general text search which returns a list of artifacts - * query for an artifact based on a checksum - * query for all available versions of an artifact, sorted in version significance order - * query for all available versions of an artifact since a given date - * query for an artifact's direct dependencies - * query for an artifact's dependency tree (as with mvn dependency:tree - no duplicates should be included) - * query for all artifacts that depend on a given artifact - */ - - /* quick search */ - -// public void testQuickSearchArtifactBytecodeSearch() -// throws Exception -// { -// // 1. check whether bytecode search or ordinary search -// // 2. get observable repos -// // 3. convert results to a list of Artifact objects -// -// List observableRepoIds = new ArrayList(); -// observableRepoIds.add( "repo1.mirror" ); -// observableRepoIds.add( "public.releases" ); -// -// userReposControl.expectAndReturn( userRepos.getObservableRepositories(), observableRepoIds ); -// -// Date whenGathered = new Date(); -// SearchResults results = new SearchResults(); -// ArchivaArtifact artifact = new ArchivaArtifact( "org.apache.archiva", "archiva-test", "1.0", "", "jar", "public.releases" ); -// artifact.getModel().setWhenGathered( whenGathered ); -// -// SearchResultHit resultHit = new SearchResultHit(); -// resultHit.setArtifact(artifact); -// resultHit.setRepositoryId("repo1.mirror"); -// -// results.addHit(SearchUtil.getHitId(artifact.getGroupId(), artifact.getArtifactId()), resultHit); -// -// SearchResultLimits limits = new SearchResultLimits( SearchResultLimits.ALL_PAGES ); -// -// searchControl.expectAndDefaultReturn( search.search( "", observableRepoIds, "MyClassName", limits, null ), results ); -// -// archivaDAOControl.expectAndReturn( archivaDAO.getArtifactDAO(), artifactDAO ); -// artifactDAOControl.expectAndReturn( artifactDAO.getArtifact( "org.apache.archiva", "archiva-test", "1.0", "", "pom", "public.releases" ), artifact ); -// -// userReposControl.replay(); -// searchControl.replay(); -// archivaDAOControl.replay(); -// artifactDAOControl.replay(); -// -// List artifacts = searchService.quickSearch( "bytecode:MyClassName" ); -// -// userReposControl.verify(); -// searchControl.verify(); -// archivaDAOControl.verify(); -// artifactDAOControl.verify(); -// -// assertNotNull( artifacts ); -// assertEquals( 1, artifacts.size() ); -// } - public void testQuickSearchArtifactRegularSearch() throws Exception { @@ -429,8 +370,6 @@ public class SearchServiceImplTest assertEquals( 1, results.size() ); } -/* query artifact versions */ - public void testGetArtifactVersionsArtifactExists() throws Exception { @@ -528,8 +467,6 @@ public class SearchServiceImplTest assertEquals( 6, artifacts.size() ); } -/* query artifact versions since a given date */ - public void testGetArtifactVersionsByDateArtifactExists() throws Exception { @@ -542,8 +479,6 @@ public class SearchServiceImplTest } -/* query artifact dependencies */ - public void testGetDependenciesArtifactExists() throws Exception { -- 2.39.5