Package net.sf.pmr.core.domain.project

Examples of net.sf.pmr.core.domain.project.Project


    public void testIsEqualsAndHashcodeWithTheSameShortDescriptionButDifferentBasicProjec() {

        Story story1 = new StoryImpl();
        Story story2 = new StoryImpl();

        Project basicProject1 = new ProjectImpl();
        basicProject1.setName("toto");
        Project basicProject2 = new ProjectImpl();
        basicProject1.setName("titi");

        // les descriptions sont identiques mais pas les iterations
        story1.setShortDescription("aa");
        story1.setDescription("super");
View Full Code Here


        public void testIsEqualsAndHashcodeWithTheSameShortDescriptionAndTheSameBasicProject() {

        Story story1 = new StoryImpl();
        Story story2 = new StoryImpl();

        Project basicProject1 = new ProjectImpl();
        Project basicProject2 = new ProjectImpl();

        // les descriptions et it�rations sont identiques
        story1.setShortDescription("aa");
        story1.setDescription("super");
        story1.setDaysEstimated(3);
View Full Code Here

    /**
     * Test quand le projet auquel on ajoute ou crée la release n'existe plus.
     */
    public void testAddOrUpdateWhenProjectDoesNotExists() {
       
        Project project = new ProjectImpl();
        project.setPersistanceId(999);
        project.setPersistanceVersion(888);
        release.setProject(project);
       
        //update
        try {
            releaseMapper.addOrUpdate(release);
View Full Code Here

     */
    public void testAddOrUpdate() {

        story1.setProject(basicProject);

        Project basicProjectTarget = new ProjectImpl();

        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject)).andReturn(basicProjectTarget);
        mockStoryMapper.addOrUpdate(story1);
        // check order
        mocksControl.checkOrder(true);
View Full Code Here

     */
    public void testDelete() {

        story1.setProject(basicProject);

        Project basicProjectTarget = new ProjectImpl();

        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject)).andReturn(basicProjectTarget);
        mockStoryMapper.delete(story1);
        // check order
        mocksControl.checkOrder(true);
View Full Code Here

     */
    public void testFindByProjectPersistanceId() {
     
      EasyMock.expect(mockStoryMapper.findByProjectPersistanceId(1)).andReturn(setOfStories);

        Project basicProjectToReturn1 = new ProjectImpl();
        Project basicProjectToReturn2 = new ProjectImpl();

        EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject1)).andReturn(basicProjectToReturn1);
        EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject2)).andReturn(basicProjectToReturn2);
       
        // set mock in replay mode
View Full Code Here

     */
    public void testFindByReleasePersistanceId() {

      EasyMock.expect(mockStoryMapper.findByReleasePersistanceId(1)).andReturn(setOfStories);
     
        Project basicProjectToReturn1 = new ProjectImpl();
        Project basicProjectToReturn2 = new ProjectImpl();

//        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject1)).andReturn(basicProjectToReturn1);
//        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject2)).andReturn(basicProjectToReturn2);
       
        EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject1)).andReturn(basicProjectToReturn1);
View Full Code Here

     */
    public void testFindByIterationPersistanceId() {

      EasyMock.expect(mockStoryMapper.findByIterationPersistanceId(1)).andReturn(setOfStories);

        Project basicProjectToReturn1 = new ProjectImpl();
        Project basicProjectToReturn2 = new ProjectImpl();
       
//        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject1)).andReturn(basicProjectToReturn1);
//        EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject2)).andReturn(basicProjectToReturn2);

        EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject1)).andReturn(basicProjectToReturn1);
View Full Code Here

     */
    public void testFindByPersistanceId() {

        story1.setProject(basicProject);

        Project basicProjectToReturn = new ProjectImpl();

        EasyMock.expect(mockStoryMapper.findById(1)).andReturn(story1);
        //EasyMock.expect(mockBasicProjectProxyUtil.getTarget(basicProject)).andReturn(basicProjectToReturn);
       
        EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject)).andReturn(basicProjectToReturn);
View Full Code Here

     */
    public void testUpdate() {

        Release release = new ReleaseImpl();

        Project project = new ProjectImpl();
        Date date = new Date();
        String number = "2";
        int persistanceId = 1;
        long persistanceVersion = 3;
        release.setProject(project);
View Full Code Here

TOP

Related Classes of net.sf.pmr.core.domain.project.Project

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.