Examples of allowsWorking()


Examples of org.libreplan.business.calendars.entities.Capacity.allowsWorking()

    }

    @Test
    public void aInitiallyZeroCapacityDoesNotAllowWorking() {
        Capacity zero = Capacity.zero();
        assertFalse(zero.allowsWorking());
    }

    @Test
    public void aNonZeroCapacityAllowsWorking() {
        Capacity capacity = Capacity.create(EffortDuration.minutes(1));
View Full Code Here

Examples of org.libreplan.business.calendars.entities.Capacity.allowsWorking()

    }

    @Test
    public void aNonZeroCapacityAllowsWorking() {
        Capacity capacity = Capacity.create(EffortDuration.minutes(1));
        assertTrue(capacity.allowsWorking());
    }

    @Test
    public void aCapacityWithExtraHoursAndZeroEffortAllowsWorking() {
        Capacity capacity = Capacity.create(EffortDuration.zero()).withAllowedExtraEffort(
View Full Code Here

Examples of org.libreplan.business.calendars.entities.Capacity.allowsWorking()

    @Test
    public void aCapacityWithExtraHoursAndZeroEffortAllowsWorking() {
        Capacity capacity = Capacity.create(EffortDuration.zero()).withAllowedExtraEffort(
                EffortDuration.minutes(1));
        assertTrue(capacity.allowsWorking());
    }

    @Test
    public void aCapacityWithZeroHoursAndOverAssignableWithoutLimitAllowsWorking() {
        Capacity capacity = Capacity.zero().overAssignableWithoutLimit();
View Full Code Here

Examples of org.libreplan.business.calendars.entities.Capacity.allowsWorking()

    }

    @Test
    public void aCapacityWithZeroHoursAndOverAssignableWithoutLimitAllowsWorking() {
        Capacity capacity = Capacity.zero().overAssignableWithoutLimit();
        assertTrue(capacity.allowsWorking());
    }

    @Test(expected = IllegalArgumentException.class)
    public void aCapacityCannotBeMultipliedByANegativeNumber() {
        Capacity.create(hours(8)).multiplyBy(-1);
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.