@Test public void hash_input2TimesSameKeys_thenGeneratesDifferentAs() throws Exception { test.hash("123"); List a1 = getVectors(); test.vectors = new ArrayList<>(); test.hash("123"); List a2 = getVectors(); Assert.assertNotEquals(a1, a2); }
public int hash(String key) { return -1; }
HashString { public int hash(String key) { return -1; } }
HashString { public int hash(String key) { return -1; } HashString(int size); }
HashString { public int hash(String key) { return -1; } HashString(int size); int hash(String key); }
HashString { public int hash(String key) { return -1; } HashString(int size); int hash(String key); public int size; public ArrayList<Integer> vectors; }