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

fixed bug which caused file comparison to always succeed

parent 76f29304
......@@ -32,7 +32,7 @@ public class TestEncryptDecrypt {
public static void assertEqualFiles(Path expected, Path actual) throws IOException{
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;
ByteBuffer eb = 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