From: Edwin L. Punzalan Date: Thu, 23 Feb 2006 03:27:56 +0000 (+0000) Subject: replaced usage of FileUtils.contentEquals() to private method compareFiles() X-Git-Tag: archiva-0.9-alpha-1~913 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28d269cb00132d8765129ff6be70cd7c7fd45412;p=archiva.git replaced usage of FileUtils.contentEquals() to private method compareFiles() git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@380034 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java b/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java index f1574a814..74f8ee56c 100644 --- a/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java +++ b/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java @@ -208,13 +208,13 @@ public class RepositoryConverterTest Artifact pomArtifact = createArtifact( "relocated-test", "relocated-v3artifact", "1.0.0", "1.0.0", "pom" ); File pomFile = getTestFile( "src/test/expected-files/" + targetRepository.pathOf( pomArtifact ) ); File testFile = getTestFile( "target/test-target-repository/" + targetRepository.pathOf( pomArtifact ) ); - assertTrue( "Check if expected relocated pom matches", FileUtils.contentEquals( pomFile, testFile ) ); + compareFiles( pomFile, testFile ); Artifact orig = createArtifact( "test", "relocated-v3artifact", "1.0.0", "1.0.0", "pom" ); artifactFile = new File( targetRepository.getBasedir(), targetRepository.pathOf( orig ) ); assertTrue( "Check if relocation artifact pom is created", artifactFile.exists() ); testFile = getTestFile( "src/test/expected-files/" + targetRepository.pathOf( orig ) ); - assertTrue( "Check if expected artifact matches", FileUtils.contentEquals( artifactFile, testFile ) ); + compareFiles( artifactFile, testFile ); } public void testV3PomWarningsOnConvert()