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

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


     * Test avec le même projet mais des numéro différents
     */
    public void testIsEqualsAndHashcodeWithDifferentNumberAndSameProject() {
       
       
        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("001");
        basicProject1.setName("Bound");
        basicProject1.setPersistanceId(5);
        basicProject1.setPersistanceVersion(23);
       
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("001");
        basicProject2.setName("Bound");
        basicProject2.setPersistanceId(5);
        basicProject2.setPersistanceVersion(23);
       
        Release release1 = new ReleaseImpl();
        release1.setNumber("1");
        release1.setDate(new Date());
        release1.setPersistanceId(1);
View Full Code Here


     * Test avec des projets différents et des numéros identiques
     */
    public void testIsEqualsAndHashcodeWithSameNumberAndDifferentProject() {
       
       
        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("001");
        basicProject1.setName("Bound");
        basicProject1.setPersistanceId(5);
        basicProject1.setPersistanceVersion(23);
       
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("Scooby");
        basicProject2.setName("Doo");
        basicProject2.setPersistanceId(10);
        basicProject2.setPersistanceVersion(3);
       
        Release release1 = new ReleaseImpl();
        release1.setNumber("1");
        release1.setDate(new Date());
        release1.setPersistanceId(1);
View Full Code Here

     * Test avec des projets différents et des numéros différents
     */
    public void testIsEqualsAndHashcodeWithDifferentNumberAndDifferentProject() {
       
       
        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("001");
        basicProject1.setName("Bound");
        basicProject1.setPersistanceId(5);
        basicProject1.setPersistanceVersion(23);
       
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("Scooby");
        basicProject2.setName("Doo");
        basicProject2.setPersistanceId(10);
        basicProject2.setPersistanceVersion(3);
       
        Release release1 = new ReleaseImpl();
        release1.setNumber("1");
        release1.setDate(new Date());
        release1.setPersistanceId(1);
View Full Code Here

    public void testUpdateWhenValidationFails() {

        int persistanceId = 2;

        Iteration iterationToUpdate = new IterationImpl();
        Project project = new ProjectImpl();
        iterationToUpdate.setProject(project);

        // recherche de l'iteration
        mockIterationRepository.expectFindByPersistanceId(persistanceId, iterationToUpdate);
View Full Code Here

        Calendar calendar2 = Calendar.getInstance();
        calendar2.set(Calendar.DAY_OF_YEAR, calendar2.get(Calendar.MONTH) - 2);

        Calendar calendar3 = Calendar.getInstance();

        Project basicProject = new ProjectImpl();

        iteration1.setProject(basicProject);
        iteration1.setStart(calendar1.getTime());
        iteration1.setEnd(calendar3.getTime());
        iteration1.setPersistanceVersion(1);
View Full Code Here

        Calendar calendar2 = Calendar.getInstance();
        calendar2.set(Calendar.DAY_OF_YEAR, calendar2.get(Calendar.DAY_OF_YEAR) - 2);

        Calendar calendar3 = Calendar.getInstance();

        Project basicProject = new ProjectImpl();

        iteration1.setProject(basicProject);
        iteration1.setStart(calendar3.getTime());
        iteration1.setEnd(calendar1.getTime());
        iteration1.setPersistanceVersion(1);
View Full Code Here

    public void testIsEqualsAndHashcodeWithSameStartDatesAndSameEndDateButDifferentProject() {

        Iteration iteration1 = new IterationImpl();
        Iteration iteration2 = new IterationImpl();

        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("A");
        basicProject1.setName("AA");
        basicProject1.setPersistanceId(1);
        basicProject1.setPersistanceVersion(1);
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("B");
        basicProject2.setName("BB");
        basicProject2.setPersistanceId(2);
        basicProject2.setPersistanceVersion(2);

        Calendar calendar1 = Calendar.getInstance();
        Calendar calendar2 = Calendar.getInstance();

        iteration1.setProject(basicProject1);
View Full Code Here

    public void testIsEqualsAndHashcodeWithSameStartDatesAndSameEndDateAndSameProject() {

        Iteration iteration1 = new IterationImpl();
        Iteration iteration2 = new IterationImpl();

        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("A");
        basicProject1.setName("AA");
        basicProject1.setPersistanceId(1);
        basicProject1.setPersistanceVersion(1);
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("A");
        basicProject2.setName("AA");
        basicProject2.setPersistanceId(1);
        basicProject2.setPersistanceVersion(1);

        Calendar calendar1 = Calendar.getInstance();
        Calendar calendar2 = Calendar.getInstance();

        iteration1.setProject(basicProject1);
View Full Code Here

       
        // getBasicProjectMapper       
        iterationMapper = AgilePlanningObjectFactory.getIterationMapper();
       
        // build basic project
        Project project = new ProjectImpl();
        project.setCode("A");
        project.setName("Super A");
        project.setPersistanceId(2);
        project.setPersistanceVersion(3);
       
        // Build iteration to Add
        iterationToAdd = new IterationImpl();
        iterationToAdd.setProject(project);
       
View Full Code Here

    public void testIsEqualsAndHashcodeWithDifferentShortDescriptions() {
       
        Story story1 = new StoryImpl();
        Story story2 = new StoryImpl();
       
        Project basicProject1 = new ProjectImpl();
        Project basicProject2 = new ProjectImpl();
       
        // les descriptions sont différentes
        story1.setShortDescription("aa");
        story1.setDescription("super");
        story1.setDaysEstimated(3);
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.