ProjectGroup defaultProjectGroup =
continuum.getProjectGroupByGroupId( ContinuumInitializer.DEFAULT_PROJECT_GROUP_GROUP_ID );
assertEquals( 0, continuum.getAllContinuumReleaseResults().size() );
ContinuumReleaseResult releaseResult = new ContinuumReleaseResult();
releaseResult.setStartTime( System.currentTimeMillis() );
File logFile = continuum.getConfiguration().getReleaseOutputFile( defaultProjectGroup.getId(),
"releases-" + releaseResult.getStartTime() );
logFile.mkdirs();
assertTrue( logFile.exists() );
releaseResult.setResultCode( 0 );
releaseResult.setEndTime( System.currentTimeMillis() );
releaseResult.setProjectGroup( defaultProjectGroup );
releaseResult = continuum.addContinuumReleaseResult( releaseResult );
List<ContinuumReleaseResult> releaseResults =
continuum.getContinuumReleaseResultsByProjectGroup( defaultProjectGroup.getId() );
assertEquals( 1, releaseResults.size() );
assertEquals( releaseResult, releaseResults.get( 0 ) );
continuum.removeContinuumReleaseResult( releaseResult.getId() );
assertEquals( 0, continuum.getAllContinuumReleaseResults().size() );
assertFalse( logFile.exists() );
assertEquals( defaultProjectGroup,
continuum.getProjectGroupByGroupId( ContinuumInitializer.DEFAULT_PROJECT_GROUP_GROUP_ID ) );