public void testPopulateBuildDefinition()
throws Exception
{
ContinuumServiceImplStub continuumServiceStub = new ContinuumServiceImplStub();
BuildDefinition buildDef = createBuildDefinition();
org.apache.maven.continuum.model.project.BuildDefinition buildDefinition =
new org.apache.maven.continuum.model.project.BuildDefinition();
buildDefinition = continuumServiceStub.getBuildDefinition( buildDef, buildDefinition );
assertEquals( buildDef.getArguments(), buildDefinition.getArguments() );
assertEquals( buildDef.getBuildFile(), buildDefinition.getBuildFile() );
assertEquals( buildDef.getDescription(), buildDefinition.getDescription() );
assertEquals( buildDef.getGoals(), buildDefinition.getGoals() );
assertEquals( buildDef.getType(), buildDefinition.getType() );
assertEquals( buildDef.isAlwaysBuild(), buildDefinition.isAlwaysBuild() );
assertEquals( buildDef.isBuildFresh(), buildDefinition.isBuildFresh() );
assertEquals( buildDef.isDefaultForProject(), buildDefinition.isDefaultForProject() );
}