]> source.dussan.org Git - archiva.git/commitdiff
fix junit
authorOlivier Lamy <olamy@apache.org>
Wed, 30 May 2012 16:05:53 +0000 (16:05 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 30 May 2012 16:05:53 +0000 (16:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1344324 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java

index 79e1aba951162eb9eeb3e9e576b3e980ce65a1bd..b37f735d6ee59456b4fc6ed4f133f96db8c93a38 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.archiva.rest.services;
  */
 
 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;
@@ -346,7 +346,7 @@ public class BrowseServiceTest
 
         BrowseService browseService = getBrowseService( authorizationHeader, true );
 
-        List<ArtifactDownloadInfo> artifactDownloadInfos =
+        List<Artifact> artifactDownloadInfos =
             browseService.getArtifactDownloadInfos( "commons-logging", "commons-logging", "1.1", testRepoId );
 
         log.info( "artifactDownloadInfos {}", artifactDownloadInfos );
index c0ad360aa8f0ee1d94265a38afb82c8a1c298549..13a68befaa17fceb341b257da5c2f9ca2ca59245 100644 (file)
@@ -83,10 +83,11 @@ public class RepositoriesServiceTest
             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 )
         {
@@ -111,7 +112,7 @@ public class RepositoriesServiceTest
             artifact.setVersion( "1.0.1" );
             artifact.setPackaging( "jar" );
 
-            repositoriesService.deleteArtifact( artifact, null );
+            repositoriesService.deleteArtifact( artifact );
         }
         catch ( ServerWebApplicationException e )
         {
@@ -138,10 +139,11 @@ public class RepositoriesServiceTest
             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() );