Package org.libreplan.business.resources.daos

Examples of org.libreplan.business.resources.daos.ICriterionDAO.findByType()


        workerToReturn.setSurname("surname");
        workerToReturn.setNif("232344243");
        // expectations
        List<Criterion> criterions = new ArrayList<Criterion>();
        expect(
                criterionServiceMock
                        .findByType(PredefinedCriterionTypes.LOCATION))
                .andReturn(criterions).anyTimes();
        expect(resourceDAOMock.find(workerToReturn.getId()))
                .andReturn(workerToReturn);
        resourceDAOMock.save(workerToReturn);
View Full Code Here


        ICriterionDAO criterionServiceMock = createMock(ICriterionDAO.class);
        final Worker workerToReturn = Worker.create();
        // expectations
        List<Criterion> criterions = new ArrayList<Criterion>();
        expect(
                criterionServiceMock
                        .findByType(PredefinedCriterionTypes.LOCATION))
                .andReturn(criterions).anyTimes();
        expect(resourceDAOMock.find(workerToReturn.getId())).andReturn(
                workerToReturn);
        resourceDAOMock.save(workerToReturn);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.