mirror of https://github.com/apache/archiva.git
cleanup legacy api test
This commit is contained in:
parent
d124802588
commit
aac7bb95c0
|
@ -43,23 +43,6 @@ public class ArchivaAdministrationServiceTest
|
||||||
assertFalse( getArchivaAdministrationService().getLegacyArtifactPaths().isEmpty() );
|
assertFalse( getArchivaAdministrationService().getLegacyArtifactPaths().isEmpty() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void addAndDeleteLegacyPath()
|
|
||||||
throws Exception
|
|
||||||
{
|
|
||||||
//Path jaxen/jars/jaxen-1.0-FCS-full.jar
|
|
||||||
//Artifact jaxen:jaxen:1.0-FCS:full:jar
|
|
||||||
int initialSize = getArchivaAdministrationService().getLegacyArtifactPaths().size();
|
|
||||||
LegacyArtifactPath legacyArtifactPath = new LegacyArtifactPath();
|
|
||||||
legacyArtifactPath.setArtifact( "wine:bordeaux:2006:GREAT:jar" );
|
|
||||||
legacyArtifactPath.setPath( "wine/jars/bordeaux-2006-GREAT.jar" );
|
|
||||||
getArchivaAdministrationService().addLegacyArtifactPath( legacyArtifactPath );
|
|
||||||
assertEquals( initialSize + 1, getArchivaAdministrationService().getLegacyArtifactPaths().size() );
|
|
||||||
|
|
||||||
getArchivaAdministrationService().deleteLegacyArtifactPath( "wine/jars/bordeaux-2006-GREAT.jar" );
|
|
||||||
assertEquals( initialSize, getArchivaAdministrationService().getLegacyArtifactPaths().size() );
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void addAndDeleteFileType()
|
public void addAndDeleteFileType()
|
||||||
throws Exception
|
throws Exception
|
||||||
|
|
Loading…
Reference in New Issue