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:
Gary D. Gregory 2011-04-11 13:53:29 +00:00
parent e8ea1dd79d
commit 82ce12fee3
1 changed files with 6 additions and 0 deletions

View File

@ -57,4 +57,10 @@ public void testCompatibility() throws Exception {
assertFalse(pair.equals(pair2));
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());
}
}