]> source.dussan.org Git - archiva.git/commitdiff
Correcting tests due to constructor change in ArchivaArtifact.
authorJoakim Erdfelt <joakime@apache.org>
Mon, 9 Apr 2007 21:33:54 +0000 (21:33 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Mon, 9 Apr 2007 21:33:54 +0000 (21:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@526928 13f79535-47bb-0310-9956-ffa450edef68

archiva-jpox-database-refactor/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/layout/AbstractBidirectionalRepositoryLayoutTestCase.java

index 54c27e900d2199f4eecfe9914e00d54da149954e..da6184bbb459d47f5cda74c53f4a1c21c7e0a17e 100644 (file)
@@ -32,11 +32,13 @@ import java.io.File;
  * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
  * @version $Id$
  */
-public class AbstractBidirectionalRepositoryLayoutTestCase extends PlexusTestCase
+public class AbstractBidirectionalRepositoryLayoutTestCase
+    extends PlexusTestCase
 {
     protected ArchivaRepository repository;
 
-    protected void setUp() throws Exception
+    protected void setUp()
+        throws Exception
     {
         super.setUp();
 
@@ -63,8 +65,9 @@ public class AbstractBidirectionalRepositoryLayoutTestCase extends PlexusTestCas
     protected ArchivaArtifact createArtifact( String groupId, String artifactId, String version, String classifier,
                                               String type )
     {
-        ArchivaArtifact artifact = new ArchivaArtifact( repository, groupId, artifactId, version, classifier, type );
+        ArchivaArtifact artifact = new ArchivaArtifact( groupId, artifactId, version, classifier, type );
         assertNotNull( artifact );
+        artifact.getModel().setRepositoryId( repository.getId() );
         return artifact;
     }
 
@@ -86,7 +89,7 @@ public class AbstractBidirectionalRepositoryLayoutTestCase extends PlexusTestCas
                                            String version, String classifier, String type )
     {
         String expectedId = groupId + ":" + artifactId + ":" + version + ":" + classifier + ":" + type;
-        
+
         assertNotNull( expectedId + " - Should not be null.", actualArtifact );
 
         assertEquals( expectedId + " - Group ID", actualArtifact.getGroupId(), groupId );