ChangeLogScmResult result = command.changelog( repo, testFileSet, commandParameters );
assertThat( result.isSuccess(), is( true ) );
List<ChangeSet> changeSets = result.getChangeLog().getChangeSets();
assertThat( changeSets.size(), is( 3 ) );
ChangeSet cs = (ChangeSet) changeSets.get( 0 );
assertThat( cs.getAuthor(), is( "aUser" ) );
assertThat( cs.getComment(), is( "a Comment" ) );
assertThat( cs.getDate(), is( keepWhen ) );
assertThat( cs.getFiles().size(), is( 1 ) );
ChangeFile cf = (ChangeFile) cs.getFiles().get( 0 );
assertThat( cf.getName(), is( "/./kept/file" ) );
assertThat( cf.getRevision(), is( "10/5 (5/5)" ) );
cs = (ChangeSet) changeSets.get( 2 );
assertThat( cs.getAuthor(), is( "various" ) );
// created/removed/moved but not the file that was in the promoted
// set...
assertThat( cs.getComment(), is( "Upstream changes" ) );
assertThat( cs.getFiles().size(), is( 3 ) );
assertThat( cs.containsFilename( "created/file" ), is( true ) );
}