mirror of https://github.com/apache/maven.git
o Decoupled test from platform details
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@960854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e6cbbbf56
commit
bf4af4c326
|
@ -56,13 +56,13 @@ public class ArtifactDeployerTest
|
|||
Artifact artifact = createArtifact( "artifact", "1.0" );
|
||||
|
||||
File file = new File( artifactBasedir, "artifact-1.0.jar" );
|
||||
assertEquals( "dummy\n", FileUtils.fileRead( file ) );
|
||||
assertEquals( "dummy", FileUtils.fileRead( file, "UTF-8" ).trim() );
|
||||
|
||||
artifactDeployer.deploy( file, artifact, remoteRepository(), localRepository() );
|
||||
|
||||
ArtifactRepository remoteRepository = remoteRepository();
|
||||
File deployedFile = new File( remoteRepository.getBasedir(), remoteRepository.pathOf( artifact ) );
|
||||
assertTrue( deployedFile.exists() );
|
||||
assertEquals( "dummy\n", FileUtils.fileRead( deployedFile ) );
|
||||
assertEquals( "dummy", FileUtils.fileRead( deployedFile, "UTF-8" ).trim() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue