ContinuumProjectBuilder projectBuilder =
(ContinuumProjectBuilder) lookup( ContinuumProjectBuilder.ROLE, MavenTwoContinuumProjectBuilder.ID );
File pom = getTestFile( "src/test/repository/maven-builder-helper-1.xml" );
ContinuumProjectBuildingResult result = projectBuilder.buildProjectsFromMetadata( pom.toURL(), null, null );
assertNotNull( result.getErrors() );
assertEquals( 0, result.getErrors().size() );
assertNotNull( result.getProjects() );
assertEquals( 1, result.getProjects().size() );
Project project = (Project) result.getProjects().get( 0 );
assertNotNull( project );
assertNotNull( project.getNotifiers() );
assertEquals( 1, project.getNotifiers().size() );
ProjectNotifier notifier = (ProjectNotifier) project.getNotifiers().get( 0 );
assertEquals( "mail", notifier.getType() );
assertEquals( "foo@bar", notifier.getConfiguration().get( "address" ) );
ProjectGroup pg = (ProjectGroup) result.getProjectGroups().get( 0 );
assertNotNull( pg );
assertNotNull( pg.getNotifiers() );