4647484950515253545556
assertTrue( "Test file has been created", testFile.exists() ); assertChecksumCommit( testFile ); event.rollback(); assertFalse( "Test file is has been deleted after rollback", testFile.exists() ); assertChecksumRollback( testFile );
8182838485868788899091
assertEquals( "Test contents have not changed", "modified contents", contents ); assertChecksumCommit( testFile ); event.rollback(); contents = readFile( testFile ); assertEquals( "Test contents have not changed", "original contents", contents );
99100101102103104105106107108109
CreateFileEvent event = new CreateFileEvent( "file contents", testFile, digesters ); assertFalse( "Test file is not yet created", testFile.exists() ); event.rollback(); assertFalse( "Test file is not yet created", testFile.exists() ); event.commit();