]> source.dussan.org Git - archiva.git/commitdiff
cleanup legacy api test
authorOlivier Lamy <olamy@apache.org>
Thu, 12 Feb 2015 22:52:49 +0000 (09:52 +1100)
committerOlivier Lamy <olamy@apache.org>
Thu, 12 Feb 2015 22:52:49 +0000 (09:52 +1100)
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.java

index 63c5d74cb3943ac97f4b63986a733673b31325d2..e3377f21a03f73dd1908dd9abc29f4dfb338ded6 100644 (file)
@@ -43,23 +43,6 @@ public class ArchivaAdministrationServiceTest
         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
     public void addAndDeleteFileType()
         throws Exception