Search in sources :

Example 11 with ValidSourceAssignment

use of org.openlmis.stockmanagement.domain.sourcedestination.ValidSourceAssignment in project openlmis-stockmanagement by OpenLMIS.

the class SourceDestinationBaseServiceTest method createSourceAssignment.

private ValidSourceAssignment createSourceAssignment(UUID programId, UUID facilityTypeId, Node node) {
    ValidSourceAssignment assignment = new ValidSourceAssignment();
    assignment.setNode(node);
    assignment.setProgramId(programId);
    assignment.setFacilityTypeId(facilityTypeId);
    return assignment;
}
Also used : ValidSourceAssignment(org.openlmis.stockmanagement.domain.sourcedestination.ValidSourceAssignment)

Aggregations

ValidSourceAssignment (org.openlmis.stockmanagement.domain.sourcedestination.ValidSourceAssignment)11 UUID (java.util.UUID)8 UUID.randomUUID (java.util.UUID.randomUUID)7 Test (org.junit.Test)7 ValidSourceDestinationDto (org.openlmis.stockmanagement.dto.ValidSourceDestinationDto)6 Node (org.openlmis.stockmanagement.domain.sourcedestination.Node)3 FacilityDto (org.openlmis.stockmanagement.dto.referencedata.FacilityDto)3 ResultActions (org.springframework.test.web.servlet.ResultActions)2 List (java.util.List)1 StockCard (org.openlmis.stockmanagement.domain.card.StockCard)1 OrderableLotIdentity (org.openlmis.stockmanagement.domain.identity.OrderableLotIdentity)1 StockCardLineItemReason (org.openlmis.stockmanagement.domain.reason.StockCardLineItemReason)1 Organization (org.openlmis.stockmanagement.domain.sourcedestination.Organization)1 ValidDestinationAssignment (org.openlmis.stockmanagement.domain.sourcedestination.ValidDestinationAssignment)1 LotDto (org.openlmis.stockmanagement.dto.referencedata.LotDto)1 OrderableDto (org.openlmis.stockmanagement.dto.referencedata.OrderableDto)1 ProgramDto (org.openlmis.stockmanagement.dto.referencedata.ProgramDto)1 LazyGrouping (org.openlmis.stockmanagement.util.LazyGrouping)1 LazyList (org.openlmis.stockmanagement.util.LazyList)1 LazyResource (org.openlmis.stockmanagement.util.LazyResource)1