Package com.agilebooster.data.entity

Examples of com.agilebooster.data.entity.Release


        Date date = new Date();
        project = new Project("Test Sprint ", "TST", "Project Sprint test.", date, "http://www.testSprint.com", "http://www.Sprint.git", scrumMaster, productOwner);
        project = projectController.create(project);

        releaseController = new ReleaseController();
        release = new Release("Release Test Sprint", date, date, true, project);
        release = releaseController.create(release);
    }
View Full Code Here


    public void testCreate() {
        System.out.println("ReleaseController:Create");
        ReleaseController releaseController = new ReleaseController();
        Date creationDate = new Date();
        Date releaseDate = new Date();
        Release release = new Release("Test Create Release", creationDate, releaseDate, true, project1);
        Release releaseResult = releaseController.create(release);

        //Check Release properties.
        assertNotNull(releaseResult.getId());
        assertEquals(release.getName(), releaseResult.getName());
        assertEquals(release.getStartDate(), releaseResult.getStartDate());
        assertEquals(release.getReleaseDate(), releaseResult.getReleaseDate());
        assertEquals(release.isActive(), releaseResult.isActive());
        assertEquals(release.getProject(), releaseResult.getProject());

        //Check project properties.
        project1 = projectController.refresh(project1);
        assertTrue(project1.getReleases().contains(releaseResult));
View Full Code Here

    public void testDestroy() {
        System.out.println("ReleaseController:Destroy");
        ReleaseController releaseController = new ReleaseController();
        Date creationDate = new Date();
        Date releaseDate = new Date();
        Release release = releaseController.create(new Release("Test Destroy Release", creationDate, releaseDate, true, project1));
        assertTrue(releaseController.destroy(release));
    }
View Full Code Here

        projectController = new ProjectController();
        project = new Project("Test BacklogItem", "TBM", "Project BacklogItem test.", date, "http://www.testBacklogItem.com", "http://www.testBacklogItem.git", scrumMaster, productOwner);
        project = projectController.create(project);

        releaseController = new ReleaseController();
        release = new Release("Release Test Backlog Item", date, date, true, project);
        release = releaseController.create(release);

        sprintController = new SprintController();
        sprint = new Sprint("Sprint Test Backlog Item", date, date, true, release);
        sprint = sprintController.create(sprint);
View Full Code Here

            //Insert sprint.
            em.persist(sprint);
            em.flush();

            //Update Release.
            Release release = sprint.getRelease();
            release.addSprint(sprint);
            em.merge(release);

            //Commit.
            em.getTransaction().commit();
        } catch (Exception ex) {
View Full Code Here

            em = getEntityManager();
            em.getTransaction().begin();
            sprint = em.getReference(Sprint.class, sprint.getId());

            //Updating release.
            Release release = sprint.getRelease();
            if (release != null) {
                release.getSprints().remove(sprint);
                em.merge(release);
            }

            //Updating Backlog items
            List<BacklogItem> backlogItems = sprint.getBacklogItems();
View Full Code Here

            Project project = backlogItem.getProject();
            project.addBacklogItem(backlogItem);
            em.merge(project);

            //Update Release.
            Release release = backlogItem.getRelease();
            if (release != null) {
                release.addBacklogItem(backlogItem);
                em.merge(release);
            }

            //Update Sprint.
            Sprint sprint = backlogItem.getSprint();
View Full Code Here

            Project project = backlogItem.getProject();
            project.getBacklogItems().remove(backlogItem);
            em.merge(project);

            //Update Release.
            Release release = backlogItem.getRelease();
            if (release != null) {
                release.getBacklogItems().remove(backlogItem);
                em.merge(release);
            }

            //Update Sprint.
            Sprint sprint = backlogItem.getSprint();
View Full Code Here

TOP

Related Classes of com.agilebooster.data.entity.Release

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.