use of com.sequenceiq.cloudbreak.cm.model.ParcelStatus in project cloudbreak by hortonworks.
the class ClouderaManagerParcelDecommissionServiceTest method createApiParcelList.
private ApiParcelList createApiParcelList(Map<String, String> products, ParcelStatus parcelStatus) {
ApiParcelList parcelList = new ApiParcelList();
List<ApiParcel> apiParcels = products.entrySet().stream().map(entry -> createApiParcel(entry.getKey(), entry.getValue(), parcelStatus)).collect(Collectors.toList());
parcelList.setItems(apiParcels);
return parcelList;
}
Aggregations