public class IntComparatorTest
{
@Test
public void testIntComparator()
{
IntComparator comparator = new IntComparator();
assertEquals( 0, comparator.compare( null, null ) );
assertEquals( 0, comparator.compare( 1, 1 ) );
assertEquals( 0, comparator.compare( -1, -1 ) );
assertEquals( 1, comparator.compare( 1, null ) );
assertEquals( 1, comparator.compare( 2, 1 ) );
assertEquals( 1, comparator.compare( 3, 1 ) );
assertEquals( 1, comparator.compare( 1, -1 ) );
assertEquals( -1, comparator.compare( null, 1 ) );
assertEquals( -1, comparator.compare( 1, 2 ) );
assertEquals( -1, comparator.compare( -1, 1 ) );
}