Add a test for default toString behavior.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091075 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8ea1dd79d
commit
82ce12fee3
|
@ -57,4 +57,10 @@ public class PairTest {
|
||||||
assertFalse(pair.equals(pair2));
|
assertFalse(pair.equals(pair2));
|
||||||
assertFalse(pair.hashCode() == pair2.hashCode());
|
assertFalse(pair.hashCode() == pair2.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testToString() throws Exception {
|
||||||
|
Pair<String, String> pair = Pair.of("Key", "Value");
|
||||||
|
assertEquals("ImmutablePair(Key,Value)", pair.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue