mirror of https://github.com/apache/archiva.git
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:
parent
84e5e12ca8
commit
79a7f98efa
|
@ -32,11 +32,13 @@ import java.io.File;
|
||||||
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
|
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class AbstractBidirectionalRepositoryLayoutTestCase extends PlexusTestCase
|
public class AbstractBidirectionalRepositoryLayoutTestCase
|
||||||
|
extends PlexusTestCase
|
||||||
{
|
{
|
||||||
protected ArchivaRepository repository;
|
protected ArchivaRepository repository;
|
||||||
|
|
||||||
protected void setUp() throws Exception
|
protected void setUp()
|
||||||
|
throws Exception
|
||||||
{
|
{
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
|
||||||
|
@ -63,8 +65,9 @@ public class AbstractBidirectionalRepositoryLayoutTestCase extends PlexusTestCas
|
||||||
protected ArchivaArtifact createArtifact( String groupId, String artifactId, String version, String classifier,
|
protected ArchivaArtifact createArtifact( String groupId, String artifactId, String version, String classifier,
|
||||||
String type )
|
String type )
|
||||||
{
|
{
|
||||||
ArchivaArtifact artifact = new ArchivaArtifact( repository, groupId, artifactId, version, classifier, type );
|
ArchivaArtifact artifact = new ArchivaArtifact( groupId, artifactId, version, classifier, type );
|
||||||
assertNotNull( artifact );
|
assertNotNull( artifact );
|
||||||
|
artifact.getModel().setRepositoryId( repository.getId() );
|
||||||
return artifact;
|
return artifact;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue