use of com.qcadoo.mes.technologies.dto.OperationProductComponentWithQuantityContainer in project mes by qcadoo.
the class ProductQuantitiesServiceImplTest method shouldReturnCorrectQuantities.
@Test
public void shouldReturnCorrectQuantities() {
// when
OperationProductComponentWithQuantityContainer productQuantities = productQuantitiesService.getProductComponentQuantities(order);
// then
assertEquals(new BigDecimal(50), productQuantities.get(productInComponent1));
assertEquals(new BigDecimal(10), productQuantities.get(productInComponent2));
assertEquals(new BigDecimal(5), productQuantities.get(productInComponent3));
assertEquals(new BigDecimal(10), productQuantities.get(productOutComponent2));
assertEquals(new BigDecimal(5), productQuantities.get(productOutComponent4));
}
Aggregations