Package de.abstrakt.mock.expectable

Examples of de.abstrakt.mock.expectable.Ignore


       
      
        MockCore.endBlock();
       
        // validation
        mockStoryValidator.acceptValidate(new Ignore(), errors);

        // ajout
        mockStoryRepository.acceptAddOrUpdate_Story(new Ignore());
       
        storyService.add(story.getProject().getPersistanceId(), story.getShortDescription(), story.getDescription(), story.getDaysEstimated(), story.getBusinessValue().getId(), story.getRiskLevel().getId());

        // V�rifie les appels
        MockCore.verify();
View Full Code Here


      
        MockCore.endBlock();

        // validation
        errors.reject("code");
        mockStoryValidator.expectValidate(new Ignore(), errors);

        Errors errorsFromService = storyService.add(story.getProject().getPersistanceId(), story.getShortDescription(), story.getDescription(), story.getDaysEstimated(), story.getBusinessValue().getId(), story.getRiskLevel().getId());

        // V�rifie les appels
        MockCore.verify();
View Full Code Here

        Story story =  new StoryImpl();
        story.setTasks(new HashSet<Task>());
        mockStoryRepository.expectFindByPersistanceId(1, story);
     
        // validation (sans erreurs)
        mockTaskValidator.expectValidate(new Ignore(), AgilePlanningObjectFactory.getErrors());
       
       
        // ajout
        mockStoryRepository.acceptAddOrUpdate_Story(story);
View Full Code Here

     
        // validation (avec erreurs)
        Errors errors = AgilePlanningObjectFactory.getErrors();
        errors.reject("erreur");
        mockTaskValidator.expectValidate(new Ignore(), errors);       
       
        Errors errorsFromService = storyService.addTask(1, 2, "toto", 2);
       
        // Vérifie les appels
        MockCore.verify();
View Full Code Here

        storyToUpdate.setBusinessValue(businessValueOfTheStory);
        storyToUpdate.setRiskLevel(riskLevelOfTheStory);
       

        // validation
        mockStoryValidator.expectValidate(new Ignore(), errors);

        // enregistrement de la story dans la repository
        mockStoryRepository.expectAddOrUpdate(storyToUpdate);

        // appel de la m�thode de mise � jour
View Full Code Here

        MockCore.endBlock();


        // validation
        errors.reject("code");
        mockStoryValidator.expectValidate(new Ignore(), errors);

        // appel de la m�thode de mise � jour
        Errors errorsFromService = storyService.update(shortDescription, description, estimate, businessValueOfTheStory.getId(), riskLevelOfTheStory.getId(), persistanceId, persistanceVersion);

        // V�rifie les appels
View Full Code Here

        story.getTasks().add(task);
       
        mockStoryRepository.expectFindByPersistanceId(1, story);
     
        // validation (sans erreurs)
        mockTaskValidator.expectValidate(new Ignore(), AgilePlanningObjectFactory.getErrors());
       
        // modification
        mockStoryRepository.acceptAddOrUpdate_Story(story);
       
        Errors errorsFromService = storyService.updateTask(1,5,"doo", 4, 1, 7);
View Full Code Here

        mockStoryRepository.expectFindByPersistanceId(persistanceId, storyToUpdate);       
       
        Errors errors = AgilePlanningObjectFactory.getErrors();
        errors.reject("erreur");
       
        mockTaskValidator.expectValidate(new Ignore(), errors);       
       
        Errors errorsFromService = storyService.updateTask(1,2,"scooby", 3, 1, 3);
       
        // Vérifie les appels
        MockCore.verify();
View Full Code Here

     * </ul>
     */
    public void testAdd() {

        // validation (sans erreurs)
        mockReleaseValidator.expectValidate(new Ignore(), errors);

        // ajout
        mockReleaseRepository.acceptAddOrUpdate(new Ignore());

        Errors errorsFromService = releaseService.add(1, "1", new Date());

        // Vérifie les appels
        MockCore.verify();
View Full Code Here

    public void testAddWhenValidationFails() {

        // validation (avec erreurs)

        errors.reject("erreur");
        mockReleaseValidator.expectValidate(new Ignore(), errors);

        Errors errorsFromService = releaseService.add(1, "1", new Date());

        // Vérifie les appels
        MockCore.verify();
View Full Code Here

TOP

Related Classes of de.abstrakt.mock.expectable.Ignore

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.