aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-checksum
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-04-01 12:28:28 +0200
committerMartin Stockhammer <martin_s@apache.org>2018-04-01 12:28:28 +0200
commitb3335cf6e50adeea3600e165585e146e1524ea3a (patch)
tree9174af676a73af30be57f555e0a10549c66f8249 /archiva-modules/archiva-base/archiva-checksum
parentf8a9bc1640ddbe2748eb7bc8e68b4dd3dd84fa51 (diff)
downloadarchiva-b3335cf6e50adeea3600e165585e146e1524ea3a.tar.gz
archiva-b3335cf6e50adeea3600e165585e146e1524ea3a.zip
Changes to avoid compile warnings
Diffstat (limited to 'archiva-modules/archiva-base/archiva-checksum')
-rw-r--r--archiva-modules/archiva-base/archiva-checksum/src/test/java/org/apache/archiva/checksum/ChecksummedFileTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-checksum/src/test/java/org/apache/archiva/checksum/ChecksummedFileTest.java b/archiva-modules/archiva-base/archiva-checksum/src/test/java/org/apache/archiva/checksum/ChecksummedFileTest.java
index 963cd87bc..727953ec9 100644
--- a/archiva-modules/archiva-base/archiva-checksum/src/test/java/org/apache/archiva/checksum/ChecksummedFileTest.java
+++ b/archiva-modules/archiva-base/archiva-checksum/src/test/java/org/apache/archiva/checksum/ChecksummedFileTest.java
@@ -133,7 +133,7 @@ public class ChecksummedFileTest
checksummedFile.createChecksum( ChecksumAlgorithm.SHA1 );
Path hashFile = checksummedFile.getChecksumFile( ChecksumAlgorithm.SHA1 );
assertTrue( "ChecksumAlgorithm file should exist.", Files.exists(hashFile) );
- String hashContents = org.apache.commons.io.FileUtils.readFileToString( hashFile.toFile() );
+ String hashContents = org.apache.commons.io.FileUtils.readFileToString( hashFile.toFile(), "UTF-8" );
hashContents = StringUtils.trim( hashContents );
assertEquals( "2bb14b388973351b0a4dfe11d171965f59cc61a1 redback-authz-open.jar", hashContents );
}
@@ -146,7 +146,7 @@ public class ChecksummedFileTest
Path sha1File = jarFile.resolveSibling( jarFile.getFileName()+ ".sha1" );
// A typical scenario seen in the wild.
- org.apache.commons.io.FileUtils.writeStringToFile( sha1File.toFile(), "sha1sum: redback-authz-open.jar: No such file or directory" );
+ org.apache.commons.io.FileUtils.writeStringToFile( sha1File.toFile(), "sha1sum: redback-authz-open.jar: No such file or directory", "UTF-8" );
ChecksummedFile checksummedFile = new ChecksummedFile( jarFile );
assertFalse( "ChecksummedFile.isValid(SHA1) == false",