public void testMkdirCommandDirAlreadyAdded()
throws Exception
{
ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );
MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, null, false );
assertResultIsSuccess( result );
assertNotNull( result.getRevision() );
ListScmResult listResult = getScmManager().list( getScmRepository(), fileSet, true, null );
assertTrue( "Directory should have been found.", listResult.isSuccess() );
// add the directory again
result = getScmManager().mkdir( getScmRepository(), fileSet, null, false );
printOutputError( result );
assertFalse( result.isSuccess() );
}