}
public void testCheckoutProject()
throws Exception
{
Commandline cl = SynergyCCM.checkoutProject( null, "MyProject", new ScmTag( "MyVersion" ), "MyPurpose",
"MyRelease", "CCM_ADDR" );
assertTrue( "CCM_ADDR is not set.", assertContains( cl.getEnvironmentVariables(), "CCM_ADDR=CCM_ADDR" ) );
assertCommandLine( "ccm co -subprojects -rel -t MyVersion -purpose MyPurpose -release MyRelease -p MyProject",
null, cl );
File f = File.createTempFile( "test", null );
f.deleteOnExit();
cl = SynergyCCM.checkoutProject( f.getParentFile(), "MyProject", new ScmTag( "MyVersion" ), "MyPurpose",
"MyRelease", "CCM_ADDR" );
if ( f.getCanonicalPath().indexOf( ' ' ) > -1 )
{
assertCommandLine( "ccm co -subprojects -rel -t MyVersion -purpose MyPurpose -release MyRelease -path \"" +
f.getParentFile().getCanonicalPath() + "\" -p MyProject", null, cl );