"mrtrout",
"drools" );
CompositeScmAction actions = new CompositeScmAction();
ScmAction addDirectory = new AddDirectory( "",
"folder1" );
actions.addScmAction( addDirectory );
byte[] content = new byte[]{1, 1, 1, 1};
ScmAction addFile = new AddFile( "folder1",
"file1.dat",
content );
actions.addScmAction( addFile );
addDirectory = new AddDirectory( "",
"folder2" );
actions.addScmAction( addDirectory );
svn.execute( actions,
"test message" );
List list = convertToStringList( svn.listEntries( "" ) );
assertTrue( list.contains( "folder1" ) );
assertTrue( list.contains( "folder1/file1.dat" ) );
assertTrue( list.contains( "folder2" ) );
// now do the directory delete
actions = new CompositeScmAction();
ScmAction deleteDirectory = new DeleteDirectory( "folder1" );
actions.addScmAction( deleteDirectory );
svn.execute( actions,
"test message" );
list = convertToStringList( svn.listEntries( "" ) );
assertFalse( list.contains( "folder1" ) );