From bf4af4c32697700a352c2b0ba5b0576863f30cec Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 6 Jul 2010 09:31:49 +0000 Subject: [PATCH] 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 --- .../apache/maven/artifact/deployer/ArtifactDeployerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java index 851d5b3922..318efff386 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java @@ -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() ); } } \ No newline at end of file