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:
Benjamin Bentmann 2010-07-06 09:31:49 +00:00
parent 0e6cbbbf56
commit bf4af4c326
1 changed files with 2 additions and 2 deletions

View File

@ -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() );
}
}