Thread.sleep( 2000 );
// Make a change to the readme.txt and commit the change
ScmTestCase.makeFile( getWorkingCopy(), "/readme.txt", "changed readme.txt" );
ScmTestCase.makeFile( getWorkingCopy(), "/src/test/java/Test.java", "changed Test.java" );
CheckInScmResult checkInResult = provider.checkIn( mainRepository, fileSet, "upstream workspace promote" );
assertTrue( "Unable to checkin changes to the repository", checkInResult.isSuccess() );
Thread.sleep( 2000 );
Date timeBeforeDownstreamCheckin = new Date();
Thread.sleep( 2000 );
ScmFileSet updateFileSet = new ScmFileSet( getUpdatingCopy() );
provider.update( mainRepository, updateFileSet );
ScmTestCase.makeFile( getUpdatingCopy(), "/pom.xml", "changed pom.xml" );
ScmTestCase.makeFile( getUpdatingCopy(), "/src/test/java/Test.java", "changed again Test.java" );
checkInResult = provider.checkIn( mainRepository, updateFileSet, "downstream workspace promote" );
assertTrue( "Unable to checkin changes to the repository", checkInResult.isSuccess() );
Thread.sleep( 2000 );
Date timeBeforeDownstreamPromote = new Date();