.generateTransportCostList(new Periode(YEAR, WEEK_50, WEEK_50));
assertNotNull(list);
assertEquals(1, list.size());
allTransportCostBasis.addAll(list);
TransportCostBasis transportCostBasis = list.get(0);
assertNotNull(transportCostBasis.getTransportCostBasisId());
list = transportCostBasisManager.findById(transportCostBasis
.getTransportCostBasisId());
assertEquals(1, list.size());
transportCostBasis = list.get(0);
transportCostBasisManager.lazyLoad(transportCostBasis,
new LazyLoadEnum[][] { { LazyLoadEnum.ORDER_COSTS,
LazyLoadEnum.NONE } });
Set<OrderCost> orderCosts = transportCostBasis.getOrderCosts();
assertNotNull(orderCosts);
assertEquals(1, orderCosts.size());
OrderCost orderCost = orderCosts.iterator().next();
list = transportCostManager.generateTransportCostList(new Periode(YEAR,
WEEK_51, WEEK_51));
assertNotNull(list);
assertEquals(1, list.size());
allTransportCostBasis.addAll(list);
transportCostBasis = list.get(0);
assertNotNull(transportCostBasis.getTransportCostBasisId());
list = transportCostBasisManager.findById(transportCostBasis
.getTransportCostBasisId());
assertEquals(1, list.size());
transportCostBasis = list.get(0);
transportCostBasisManager.lazyLoad(transportCostBasis,
new LazyLoadEnum[][] { { LazyLoadEnum.ORDER_COSTS,
LazyLoadEnum.NONE } });
orderCosts = transportCostBasis.getOrderCosts();
assertNotNull(orderCosts);
assertEquals(1, orderCosts.size());
orderCost = orderCosts.iterator().next();
assertEquals("Etterlevering:Takstein:660.00", orderCost.getComment());
assertEquals(BigDecimal.valueOf(660).setScale(2), orderCost
.getCostAmount().setScale(2));
list = transportCostManager.generateTransportCostList(new Periode(YEAR,
WEEK_52, WEEK_52));
assertNotNull(list);
assertEquals(1, list.size());
allTransportCostBasis.addAll(list);
transportCostBasis = list.get(0);
assertNotNull(transportCostBasis.getTransportCostBasisId());
list = transportCostBasisManager.findById(transportCostBasis
.getTransportCostBasisId());
assertEquals(1, list.size());
transportCostBasis = list.get(0);
transportCostBasisManager.lazyLoad(transportCostBasis,
new LazyLoadEnum[][] { { LazyLoadEnum.ORDER_COSTS,
LazyLoadEnum.NONE } });
orderCosts = transportCostBasis.getOrderCosts();
assertNotNull(orderCosts);
assertEquals(1, orderCosts.size());
orderCost = orderCosts.iterator().next();
assertEquals("Etterlevering:Takstol:660.00", orderCost.getComment());
assertEquals(BigDecimal.valueOf(660).setScale(2), orderCost