Correcting tests due to constructor change in ArchivaArtifact.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@526928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-04-09 21:33:54 +00:00
parent 84e5e12ca8
commit 79a7f98efa
1 changed files with 7 additions and 4 deletions

View 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 );