@Test
    public void testDeleteBuildDefinition()
        throws ContinuumStoreException
    {
        Project project = projectDao.getProjectWithAllDetails( testProject1.getId() );
        BuildDefinition buildDefinition = project.getBuildDefinitions().get( 1 );
        project.getBuildDefinitions().remove( 0 );
        projectDao.updateProject( project );
        project = projectDao.getProjectWithAllDetails( testProject1.getId() );
        assertEquals( "check size is now 1", 1, project.getBuildDefinitions().size() );
        BuildDefinition retrievedBuildDefinition = project.getBuildDefinitions().get( 0 );
        assertBuildDefinitionEquals( buildDefinition, retrievedBuildDefinition );
        assertScheduleEquals( testSchedule2, retrievedBuildDefinition.getSchedule() );
        assertProfileEquals( testProfile2, retrievedBuildDefinition.getProfile() );
        // !! These actually aren't happening !!
        // TODO: test the def was physically deleted
        // TODO: test the schedule/profile was NOT physically deleted
    }
@Test
    public void testDeleteBuildDefinition()
        throws ContinuumStoreException
    {
        Project project = projectDao.getProjectWithAllDetails( testProject1.getId() );
        BuildDefinition buildDefinition = project.getBuildDefinitions().get( 1 );
        project.getBuildDefinitions().remove( 0 );
        projectDao.updateProject( project );
        project = projectDao.getProjectWithAllDetails( testProject1.getId() );
        assertEquals( "check size is now 1", 1, project.getBuildDefinitions().size() );
        BuildDefinition retrievedBuildDefinition = project.getBuildDefinitions().get( 0 );
        assertBuildDefinitionEquals( buildDefinition, retrievedBuildDefinition );
        assertScheduleEquals( testSchedule2, retrievedBuildDefinition.getSchedule() );
        assertProfileEquals( testProfile2, retrievedBuildDefinition.getProfile() );
       
       
       
    }
@test public void testdeletebuilddefinition() throws continuumstoreexception { project project = projectdao.getprojectwithalldetails( testproject1.getid() ); builddefinition builddefinition = project.getbuilddefinitions().get( 1 ); project.getbuilddefinitions().remove( 0 ); projectdao.updateproject( project ); project = projectdao.getprojectwithalldetails( testproject1.getid() ); assertequals( "check size is now 1", 1, project.getbuilddefinitions().size() ); builddefinition retrievedbuilddefinition = project.getbuilddefinitions().get( 0 ); assertbuilddefinitionequals( builddefinition, retrievedbuilddefinition ); assertscheduleequals( testschedule2, retrievedbuilddefinition.getschedule() ); assertprofileequals( testprofile2, retrievedbuilddefinition.getprofile() ); }