[MRM-1360] move type population into Maven 2 plugin

- correct problem with test case

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-03-10 04:27:51 +00:00
parent 3f9d3bac3e
commit 2211cb809d
1 changed files with 12 additions and 6 deletions

View File

@ -20,12 +20,6 @@ package org.apache.archiva.web.xmlrpc.services;
*/
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.apache.archiva.indexer.search.RepositorySearch;
import org.apache.archiva.indexer.search.SearchResultHit;
import org.apache.archiva.indexer.search.SearchResultLimits;
@ -36,6 +30,7 @@ import org.apache.archiva.metadata.model.ProjectVersionMetadata;
import org.apache.archiva.metadata.model.ProjectVersionReference;
import org.apache.archiva.metadata.repository.MetadataRepository;
import org.apache.archiva.metadata.repository.MetadataResolver;
import org.apache.archiva.metadata.repository.storage.maven2.MavenArtifactFacet;
import org.apache.archiva.metadata.repository.storage.maven2.MavenProjectFacet;
import org.apache.archiva.web.xmlrpc.api.SearchService;
import org.apache.archiva.web.xmlrpc.api.beans.Artifact;
@ -45,6 +40,12 @@ import org.codehaus.plexus.spring.PlexusInSpringTestCase;
import org.easymock.MockControl;
import org.easymock.classextension.MockClassControl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
* SearchServiceImplTest
*
@ -548,6 +549,11 @@ public class SearchServiceImplTest
artifactMetadata.setMd5( CHECKSUM );
artifactMetadata.setWhenGathered( whenGathered );
artifactMetadata.setRepositoryId( TEST_REPO );
MavenArtifactFacet facet = new MavenArtifactFacet();
facet.setType( "jar" );
artifactMetadata.addFacet( facet );
return artifactMetadata;
}
}