}
public void testCompareByRevision()
{
List list1 = new ArrayList();
list1.add( new ChangeFile( "changefile-1", "123" ) );
list1.add( new ChangeFile( "changefile-1", "234" ) );
List list2 = new ArrayList();
list2.add( new ChangeFile( "changefile-2", "246" ) );
list2.add( new ChangeFile( "changefile-2", "468" ) );
assertTrue( "Test compare by revision, less than", comparator.compare( list1, list2 ) < 0 );
list1 = new ArrayList();
list1.add( new ChangeFile( "changefile-1", "246" ) );
list1.add( new ChangeFile( "changefile-1", "468" ) );
list2 = new ArrayList();
list2.add( new ChangeFile( "changefile-2", "123" ) );
list2.add( new ChangeFile( "changefile-2", "234" ) );
assertTrue( "Test compare by revision, greater than", comparator.compare( list1, list2 ) > 0 );
}