use of org.openlmis.stockmanagement.domain.sourcedestination.Organization in project openlmis-stockmanagement by OpenLMIS.
the class SourceDestinationBaseServiceTest method mockedOrganizationNode.
private Node mockedOrganizationNode(String name) {
Organization organization = new Organization();
organization.setName(name);
organization.setId(randomUUID());
when(organizationRepository.findOne(organization.getId())).thenReturn(organization);
Node node = new Node();
node.setRefDataFacility(false);
node.setId(randomUUID());
node.setReferenceId(organization.getId());
return node;
}
Aggregations