Use a constant for the tag size.

This commit is contained in:
akwizgran
2011-08-12 14:26:56 +02:00
parent f0cf825ca9
commit 68b4760dfa
11 changed files with 43 additions and 33 deletions

View File

@@ -53,7 +53,7 @@ public class ConnectionRecogniserImplTest extends TestCase {
}});
final ConnectionRecogniserImpl c =
new ConnectionRecogniserImpl(transportId, crypto, db);
assertNull(c.acceptConnection(new byte[16]));
assertNull(c.acceptConnection(new byte[Constants.TAG_BYTES]));
context.assertIsSatisfied();
}