Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphael
histream
Commits
58ce2b34
Commit
58ce2b34
authored
Sep 22, 2015
by
R.W.Majeed
Browse files
fixed bug which caused file comparison to always succeed
parent
76f29304
Changes
1
Hide whitespace changes
Inline
Side-by-side
histream-core/src/test/java/de/sekmi/histream/crypto/TestEncryptDecrypt.java
View file @
58ce2b34
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment