@Test public void hash_calledWithSameKey2Times_returnsSameValue() throws Exception { int actual1 = test.hash("123"); int actual2 = test.hash("123"); Assert.assertEquals(actual1, actual2); }
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; }