Examples of AggregatedHoursGroup


Examples of org.libreplan.business.orders.entities.AggregatedHoursGroup

    public void getHoursReturnTheSumOfAllHours() {
        HoursGroup h1 = createHoursGroupWithCriterions(criterion1, criterion2);
        h1.setWorkingHours(10);
        HoursGroup h2 = createHoursGroupWithCriterions(criterion1, criterion2);
        h2.setWorkingHours(5);
        AggregatedHoursGroup aggregate = AggregatedHoursGroup.aggregate(h1, h2)
                .get(0);
        assertThat(aggregate.getHours(), equalTo(15));
    }
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.