o redeployment will be taken care of in mercury and most repomans take care of this already.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721352 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2008-11-28 06:15:34 +00:00
parent 6982b056ac
commit 18bd5395e1
1 changed files with 0 additions and 29 deletions

View File

@ -65,33 +65,4 @@ public class ArtifactDeployerTest
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 ) );
}
}
}