Package net.sf.pmr.core.domain.user

Examples of net.sf.pmr.core.domain.user.User


       
        Charge charge1 = new ChargeImpl();
        Charge charge2 = new ChargeImpl();
       
        // developpeur
        User developper = new UserImpl();
        developper.setLogin("scooby");
        developper.setLastName("scooby");
       
        // jour
        Calendar calendar = Calendar.getInstance();
        Date day = calendar.getTime();
       
View Full Code Here


     *
     * Test avec le même projet, la même description, le même développer
     */
    public void testIsEqualsAndHashcodeWithSameShortDescriptionAndSameIdealDayAndShameDevelopper() {
   
        User user1 = new UserImpl();
        user1.setFirstName("Bat");
        user1.setLastName("Man");
        user1.setLogin("batman");
        user1.setPersistanceId(1);
        user1.setPersistanceVersion(1);
       
        User user2 = new UserImpl();
        user2.setFirstName("Bat");
        user2.setLastName("Man");
        user2.setLogin("batman");
        user2.setPersistanceId(1);
        user2.setPersistanceVersion(1);
       
       
        Task task1 = new TaskImpl();
        Task task2 = new TaskImpl();
       
View Full Code Here

     *
     * Test avec un d�velopper diff�rent
     */
    public void testIsEqualsAndHashcodeWithSameShortDescriptionAndSameIdealDayAndDifferentDevelopper() {
   
        User user1 = new UserImpl();
        user1.setFirstName("Bat");
        user1.setLastName("Man");
        user1.setLogin("batman");
        user1.setPersistanceId(1);
        user1.setPersistanceVersion(1);
       
        User user2 = new UserImpl();
        user2.setFirstName("Scooby");
        user2.setLastName("Doo");
        user2.setLogin("scoobydoo");
        user2.setPersistanceId(1);
        user2.setPersistanceVersion(1);
       
       
        Task task1 = new TaskImpl();
        Task task2 = new TaskImpl();
       
View Full Code Here

     *
     * Test avec le nombre d'ideal days diff�rent
     */
    public void testIsEqualsAndHashcodeWithSameShortDescriptionAndDifferentIdealDayAndSameDevelopper() {
   
        User user1 = new UserImpl();
        user1.setFirstName("Bat");
        user1.setLastName("Man");
        user1.setLogin("batman");
        user1.setPersistanceId(1);
        user1.setPersistanceVersion(1);
       
        User user2 = new UserImpl();
        user2.setFirstName("Bat");
        user2.setLastName("Man");
        user2.setLogin("batman");
        user2.setPersistanceId(1);
        user2.setPersistanceVersion(1);
       
       
        Task task1 = new TaskImpl();
        Task task2 = new TaskImpl();
       
View Full Code Here

     *
     * Test avec une description diff�rents
     */
    public void testIsEqualsAndHashcodeWithDifferentShortDescriptionAndSameIdealDayAndSameDevelopper() {
   
        User user1 = new UserImpl();
        user1.setFirstName("Bat");
        user1.setLastName("Man");
        user1.setLogin("batman");
        user1.setPersistanceId(1);
        user1.setPersistanceVersion(1);
       
        User user2 = new UserImpl();
        user2.setFirstName("Bat");
        user2.setLastName("Man");
        user2.setLogin("batman");
        user2.setPersistanceId(1);
        user2.setPersistanceVersion(1);
       
       
        Task task1 = new TaskImpl();
        Task task2 = new TaskImpl();
       
View Full Code Here

      return errros;
    }

        // else build the object to persist
        Task task = AgilePlanningObjectFactory.getTask();
        User user = CoreObjectFactory.getUser();
        user.setPersistanceId(developperPersistanceId);

        task.setOwner(user);
        task.setDaysEstimated(numberOfIdealDays);
        task.setShortDescription(shortDescription);
View Full Code Here

      return errros;
    }

    // else, build the object to persist
    Task task = AgilePlanningObjectFactory.getTask();
    User user = CoreObjectFactory.getUser();
    user.setPersistanceId(developperPersistanceId);

    task.setOwner(user);
    task.setPersistanceId(persistanceId);
    task.setPersistanceVersion(persistanceVersion);
    task.setDaysEstimated(numberOfIdealDays);
View Full Code Here

        charge.setDay(day);
        charge.setDaysNeededToFinish(daysNeededToFinish);
        charge.setTimeUsedToday(timeUsedToday);

        // finding user
        User user = userRepository.findUserByPersistanceId(userPersistanceId);

        charge.setUser(user);

        // adding the charge
        for (Task task : story.getTasks()) {
View Full Code Here

        // Ajout d'une tâche
        Task task = new TaskImpl();
        task.setPersistanceId(1);
        story.getTasks().add(task);

        User user = new UserImpl();
        user.setPersistanceId(1);
       
        // appel de la recherche de la story
        mockStoryRepository.expectFindByPersistanceId(1, story);
       
        // appel de la recherche du user
View Full Code Here

        charge.setDay(chargeDate);
        charge.setDaysNeededToFinish(2);
        charge.setPersistanceId(1);
        charge.setPersistanceVersion(5);
        charge.setTimeUsedToday(0.5);
        User chargeUser = new UserImpl();
        charge.setUser(chargeUser);
       
        task.getCharges().add(charge);
       
        // appel de la recherche de la story
View Full Code Here

TOP

Related Classes of net.sf.pmr.core.domain.user.User

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.