diff options
author | Olivier Lamy <olamy@apache.org> | 2011-06-08 13:32:25 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-06-08 13:32:25 +0000 |
commit | 217ae162828cce5f473c4e3b87c985f21c1a3b5b (patch) | |
tree | 6e062a88f4d8ac6200ec31d9abbad81889fe4ddd /archiva-modules/archiva-base/archiva-checksum/src | |
parent | 95dde313897f3258d5b676f8a075872497e5e188 (diff) | |
download | archiva-217ae162828cce5f473c4e3b87c985f21c1a3b5b.tar.gz archiva-217ae162828cce5f473c4e3b87c985f21c1a3b5b.zip |
fix unit test in archiva-proxy cache url failure clear between tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133396 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-checksum/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java index b4cf9c4bf..a26b2348c 100644 --- a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java +++ b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java @@ -267,7 +267,7 @@ public class ChecksummedFile String rawChecksum = FileUtils.readFileToString( checksumFile ); String expectedChecksum = parseChecksum( rawChecksum, checksumAlgorithm, referenceFile.getName() ); - if ( StringUtils.equalsIgnoreCase( expectedChecksum, actualChecksum ) == false ) + if ( ! StringUtils.equalsIgnoreCase( expectedChecksum, actualChecksum ) ) { // create checksum (again) FileUtils.writeStringToFile( checksumFile, actualChecksum + " " + referenceFile.getName() ); |