public void testSameValues2() { Random rnd = new Random(); for (int i = 0; i < 10000; i++) { byte[] key = new byte[i + 1]; rnd.nextBytes(key); assertEquals(vOld.getServer(key), vNew.getServer(key), "int value is " + i); } }
public void testIsolatedValue2() { byte[] key = String.valueOf(7).getBytes(); SocketAddress newOne = vNew.getServer(key); SocketAddress oldOne = vOld.getServer(key); assertEquals(oldOne, newOne); }
public void testSameValues() { for (int i = 0; i < 1000; i++) { byte[] key = String.valueOf(i).getBytes(); assertEquals(vOld.getServer(key), vNew.getServer(key), "int value is " + i); } }