git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server: String -> Stream
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
test_code
/
CryptUtilsTest.java
diff --git
a/src/be/nikiroo/utils/test_code/CryptUtilsTest.java
b/src/be/nikiroo/utils/test_code/CryptUtilsTest.java
index 49005acdc054359508bfd5ef593bb3dfdbaa3962..11578f5be88901f6555ee3d6cb9a2c5801d756c7 100644
(file)
--- a/
src/be/nikiroo/utils/test_code/CryptUtilsTest.java
+++ b/
src/be/nikiroo/utils/test_code/CryptUtilsTest.java
@@
-135,15
+135,17
@@
class CryptUtilsTest extends TestLauncher {
addTest(new TestCase("Simple test") {
@Override
public void test() throws Exception {
addTest(new TestCase("Simple test") {
@Override
public void test() throws Exception {
- InputStream in = new ByteArrayInputStream(new byte[] {42, 127, 12});
+ InputStream in = new ByteArrayInputStream(new byte[] { 42, 127,
+ 12 });
crypt.encrypt(in);
ByteArrayOutputStream out = new ByteArrayOutputStream();
IOUtils.write(in, out);
byte[] result = out.toByteArray();
crypt.encrypt(in);
ByteArrayOutputStream out = new ByteArrayOutputStream();
IOUtils.write(in, out);
byte[] result = out.toByteArray();
-
- assertEquals("We wrote 3 bytes, we expected 3 bytes back but got: "
- + result.length, result.length, result.length);
-
+
+ assertEquals(
+ "We wrote 3 bytes, we expected 3 bytes back but got: "
+ + result.length, result.length, result.length);
+
assertEquals(42, result[0]);
assertEquals(127, result[1]);
assertEquals(12, result[2]);
assertEquals(42, result[0]);
assertEquals(127, result[1]);
assertEquals(12, result[2]);