buildResult3.setScmResult( scmResult );
testBuildResult3.setScmResult( createTestScmResult( scmResult, "3" ) );
testProject2.addBuildResult( buildResult3 );
// TODO: better way? this assumes that some untested methods already work!
Schedule schedule2 = createTestSchedule( testSchedule2 );
if ( addToStore )
{
schedule2 = scheduleDao.addSchedule( schedule2 );
testSchedule2.setId( schedule2.getId() );
}
else
{
// from expected.xml, continuum-data-management
testSchedule2.setId( 1 );
}
Schedule schedule1 = createTestSchedule( testSchedule1 );
if ( addToStore )
{
schedule1 = scheduleDao.addSchedule( schedule1 );
testSchedule1.setId( schedule1.getId() );
}
else
{
// from expected.xml, continuum-data-management
testSchedule1.setId( 2 );
}
Schedule schedule3 = createTestSchedule( testSchedule3 );
if ( addToStore )
{
schedule3 = scheduleDao.addSchedule( schedule3 );
testSchedule3.setId( schedule3.getId() );
}
else
{
// from expected.xml, continuum-data-management
testSchedule3.setId( 3 );