"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 );
svn.execute( actions,
"test message" );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
svn.getContent( "folder1",
"file1.dat",
-1,
baos );
assertTrue( Arrays.equals( content,
baos.toByteArray() ) );
List list = convertToStringList( svn.listEntries( "" ) );
assertTrue( list.contains( "folder1" ) );
assertTrue( list.contains( "folder1/file1.dat" ) );
assertFalse( list.contains( "folder2/file2.dat" ) );
// No do the file move
actions = new CompositeScmAction();
addDirectory = new AddDirectory( "",
"folder2" );
actions.addScmAction( addDirectory );
MoveFile moveFile = new MoveFile( "folder1",
"file1.dat",
"folder2",