Package de.abstrakt.mock.expectable

Examples of de.abstrakt.mock.expectable.Ignore


    public void testAdd() {

        // TODO comment tester unitairement la construction de l'objet à l'aide de la factory ???

        // validation (sans erreurs)
        mockIterationValidator.expectValidate(new Ignore(), AgilePlanningObjectFactory.getErrors());
        // ajout
        mockIterationRepository.acceptAddOrUpdate(new Ignore());

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

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


        // validation (avec erreurs)

        Errors errors = AgilePlanningObjectFactory.getErrors();
        errors.reject("erreur");
        mockIterationValidator.expectValidate(new Ignore(), errors);

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

        // Vérification des appels
        MockCore.verify();
View Full Code Here

        // recherche de l'iteration
        mockIterationRepository.expectFindByPersistanceId(persistanceId, iterationToAddOrUpdate);

        // validation (sans erreurs)
        mockIterationValidator.expectValidate(new Ignore(), AgilePlanningObjectFactory.getErrors());

        // enregistrement
        mockIterationRepository.expectAddOrUpdate(iterationToAddOrUpdate);

        // appel au service
View Full Code Here

        mockIterationRepository.expectFindByPersistanceId(persistanceId, iterationToUpdate);

        // mock de l'erreur
        Errors errors = AgilePlanningObjectFactory.getErrors();
        errors.reject("erreur");
        mockIterationValidator.expectValidate(new Ignore(), errors);

        Errors errorsFromService = iterationService.update(new Date(), new Date(), persistanceId, 3);

        // 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.