Commit 58ce2b34 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

fixed bug which caused file comparison to always succeed

parent 76f29304
...@@ -32,7 +32,7 @@ public class TestEncryptDecrypt { ...@@ -32,7 +32,7 @@ public class TestEncryptDecrypt {
public static void assertEqualFiles(Path expected, Path actual) throws IOException{ public static void assertEqualFiles(Path expected, Path actual) throws IOException{
FileChannel e = FileChannel.open(expected, StandardOpenOption.READ); FileChannel e = FileChannel.open(expected, StandardOpenOption.READ);
FileChannel a = FileChannel.open(expected, StandardOpenOption.READ); FileChannel a = FileChannel.open(actual, StandardOpenOption.READ);
int bufferSize = 1024*1024*10; int bufferSize = 1024*1024*10;
ByteBuffer eb = ByteBuffer.allocateDirect(bufferSize); ByteBuffer eb = ByteBuffer.allocateDirect(bufferSize);
ByteBuffer ab = ByteBuffer.allocateDirect(bufferSize); ByteBuffer ab = ByteBuffer.allocateDirect(bufferSize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment