use of org.openlmis.stockmanagement.dto.StockEventLineItemDto in project openlmis-stockmanagement by OpenLMIS.
the class StockEventDtoDataBuilder method createNoSourceDestinationStockEventDto.
/**
* Create stock event dto object without source and destination for testing.
*
* @return created dto object.
*/
public static StockEventDto createNoSourceDestinationStockEventDto() {
StockEventDto stockEventDto = createStockEventDto();
StockEventLineItemDto stockEventLineItem = stockEventDto.getLineItems().get(0);
stockEventLineItem.setSourceId(null);
stockEventLineItem.setDestinationId(null);
stockEventLineItem.setSourceFreeText(null);
stockEventLineItem.setDestinationFreeText(null);
return stockEventDto;
}
Aggregations