WIP: Adds Transport properly validator test

This commit is contained in:
Santiago Torres
2016-02-26 01:00:09 -05:00
parent e458853f34
commit 24f733ed05
2 changed files with 147 additions and 3 deletions

View File

@@ -32,6 +32,12 @@ public class TestUtils {
return b;
}
public static byte[] getRandomBytes(int length) {
byte[] b = new byte[length];
random.nextBytes(b);
return b;
}
public static String createRandomString(int length) {
char[] c = new char[length];
for (int i = 0; i < length; i++)