*/
import org.apache.archiva.metadata.model.ProjectVersionMetadata;
+import org.apache.archiva.rest.api.model.Artifact;
import org.apache.archiva.rest.api.model.ArtifactContentEntry;
-import org.apache.archiva.rest.api.model.ArtifactDownloadInfo;
import org.apache.archiva.rest.api.model.BrowseResult;
import org.apache.archiva.rest.api.model.BrowseResultEntry;
import org.apache.archiva.rest.api.model.Entry;
BrowseService browseService = getBrowseService( authorizationHeader, true );
- List<ArtifactDownloadInfo> artifactDownloadInfos =
+ List<Artifact> artifactDownloadInfos =
browseService.getArtifactDownloadInfos( "commons-logging", "commons-logging", "1.1", testRepoId );
log.info( "artifactDownloadInfos {}", artifactDownloadInfos );
artifact.setArtifactId( "commons-logging" );
artifact.setVersion( "1.0.1" );
artifact.setPackaging( "jar" );
+ artifact.setContext( SOURCE_REPO_ID );
RepositoriesService repositoriesService = getRepositoriesService( null );
- repositoriesService.deleteArtifact( artifact, SOURCE_REPO_ID );
+ repositoriesService.deleteArtifact( artifact );
}
catch ( ServerWebApplicationException e )
{
artifact.setVersion( "1.0.1" );
artifact.setPackaging( "jar" );
- repositoriesService.deleteArtifact( artifact, null );
+ repositoriesService.deleteArtifact( artifact );
}
catch ( ServerWebApplicationException e )
{
artifact.setArtifactId( "commons-logging" );
artifact.setVersion( "1.0.1" );
artifact.setPackaging( "jar" );
+ artifact.setContext( SOURCE_REPO_ID );
RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
- repositoriesService.deleteArtifact( artifact, SOURCE_REPO_ID );
+ repositoriesService.deleteArtifact( artifact );
assertFalse( "artifact not deleted exists:" + artifactFile.getPath(), artifactFile.exists() );