Examples of VirtualWorker


Examples of org.libreplan.business.resources.entities.VirtualWorker

    private void givenVirtualWorkerWithCapacityAndLoad(
            Capacity capacityPerDayAndUnit,
            int capacityUnits,
            EffortDuration load) {
        VirtualWorker worker = createNiceMock(VirtualWorker.class);
        expect(
                worker.getAssignedDurationDiscounting(isA(Map.class),
                        isA(LocalDate.class))).andReturn(load)
                .anyTimes();
        expect(worker.getCalendar()).andReturn(
                createCalendar(ResourceCalendar.class, capacityPerDayAndUnit,
                        capacityUnits)).anyTimes();
        replay(worker);
        workers.add(worker);
    }
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.