public class ItemIdTest extends Object
ItemId class.| Constructor and Description |
|---|
ItemIdTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
test() |
void |
testCompareTo()
Test the implementation of the
Comparable interface. |
void |
testHashCode()
Test that the hash codes for different
ItemIds are different. |
public void test()
public void testCompareTo()
Comparable interface.public void testHashCode()
ItemIds are different. Impossible to test for sure, because of
course the strings chosen have a very very low chance have the same hashCode.Copyright © 1999–2016. All rights reserved.