@Test public void keyValuePair_hashCode_strStr_emptyEmpty() { final KeyValuePair<String, String> keyValuePair = new KeyValuePair<String, String>(); assertNotNull("KeyValuePair should not be null", keyValuePair); final int keyValuePairHashCode = keyValuePair.hashCode(); assertEquals("Unexpected KeyValuePair.hashCode()", -62888490, keyValuePairHashCode); }
@Test public void keyValuePair_hashCode_strStr_plasiboEmpty() { final KeyValuePair<String, String> keyValuePair = new KeyValuePair<String, String>(); assertNotNull("KeyValuePair should not be null", keyValuePair); keyValuePair.setKey("Plasibo"); final int keyValuePairHashCode = keyValuePair.hashCode(); assertEquals("Unexpected KeyValuePair.hashCode()", 311120094, keyValuePairHashCode); }
@Test public void keyValuePair_hashCode_strStr_emptyPlasibo() { final KeyValuePair<String, String> keyValuePair = new KeyValuePair<String, String>(); assertNotNull("KeyValuePair should not be null", keyValuePair); keyValuePair.setValue("Plasibo"); final int keyValuePairHashCode = keyValuePair.hashCode(); assertEquals("Unexpected KeyValuePair.hashCode()", 1108021822, keyValuePairHashCode); }
@Test public void keyValuePair_hashCode_strInt_plasiboMIN() { final KeyValuePair<String, Integer> keyValuePair = new KeyValuePair<String, Integer>(); assertNotNull("KeyValuePair should not be null", keyValuePair); keyValuePair.setKey("Plasibo"); keyValuePair.setValue(Integer.MIN_VALUE); final int keyValuePairHashCode = keyValuePair.hashCode(); assertEquals("Unexpected KeyValuePair.hashCode()", -1836363554, keyValuePairHashCode); }
@Test public void keyValuePair_hashCode_strBoo_plasiboTRUE() { final KeyValuePair<String, Boolean> keyValuePair = new KeyValuePair<String, Boolean>(); assertNotNull("KeyValuePair should not be null", keyValuePair); keyValuePair.setKey("Plasibo"); keyValuePair.setValue(true); final int keyValuePairHashCode = keyValuePair.hashCode(); assertEquals("Unexpected KeyValuePair.hashCode()", 311121325, keyValuePairHashCode); }