You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2008/11/28 07:15:34 UTC

svn commit: r721352 - /maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

Author: jvanzyl
Date: Thu Nov 27 22:15:34 2008
New Revision: 721352

URL: http://svn.apache.org/viewvc?rev=721352&view=rev
Log:
o redeployment will be taken care of in mercury and most repomans take care of this already.

Modified:
    maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

Modified: maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java?rev=721352&r1=721351&r2=721352&view=diff
==============================================================================
--- maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java (original)
+++ maven/components/trunk/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java Thu Nov 27 22:15:34 2008
@@ -65,33 +65,4 @@
         assertTrue( deployedFile.exists() );
         assertEquals( "dummy\n", FileUtils.fileRead( deployedFile ) );
     }
-
-    public void testArtifactDeploymentForArtifactThatHasAlreadyBeenDeployed()
-        throws Exception
-    {
-        String artifactBasedir = new File( getBasedir(), "src/test/resources/artifact-install" ).getAbsolutePath();
-
-        Artifact artifact = createArtifact( "artifact", "10.1.3" );
-
-        File file = new File( artifactBasedir, "artifact-1.0.jar" );
-        assertEquals( "dummy\n", FileUtils.fileRead( file ) );
-
-        ArtifactRepository remoteRepository = remoteRepository();
-        createRemoteArtifact( artifact );
-
-        File deployedFile = new File( remoteRepository.getBasedir(), remoteRepository.pathOf( artifact ) );
-        assertTrue( deployedFile.exists() );
-        assertEquals( artifact.getId(), FileUtils.fileRead( deployedFile ) );
-        
-        try
-        {
-            artifactDeployer.deploy( file, artifact, remoteRepository, localRepository() );
-            fail( "Should have failed due to previous deployment of artifact." );
-        }
-        catch( ArtifactDeploymentException e )
-        {
-            assertTrue( deployedFile.exists() );
-            assertEquals( artifact.getId(), FileUtils.fileRead( deployedFile ) );
-        }
-    }
 }
\ No newline at end of file