File pom = getTestFile( pomResource );
assertNotNull( "Can't find project " + pomResource, pom );
//ContinuumProjectBuildingResult result = projectBuilder.buildProjectsFromMetadata( pom.toURL(), null, null, true, singleCheckout );
ContinuumProjectBuildingResult result = projectBuilder.buildProjectsFromMetadata( pom.toURL(), null, null, true );
// some assertions to make sure our expectations match. This is NOT
// meant as a unit test for the projectbuilder!
assertNotNull( "Project list not null", result.getProjects() );
assertEquals( "#Projectgroups", 1, result.getProjectGroups().size() );
ProjectGroup pg = result.getProjectGroups().get( 0 );
if ( !result.getProjects().isEmpty() )
{
for ( Project p : result.getProjects() )
{
pg.addProject( p );
}
}