use of com.epam.ta.reportportal.ws.converter.builders.TestItemBuilder in project service-api by reportportal.
the class RerunHandlerImpl method updateRootItem.
private ItemCreatedRS updateRootItem(StartTestItemRQ request, TestItem foundItem) {
foundItem = new TestItemBuilder(foundItem).addDescription(request.getDescription()).overwriteAttributes(request.getAttributes()).addStatus(StatusEnum.IN_PROGRESS).get();
ofNullable(request.getUuid()).ifPresent(foundItem::setUuid);
return new ItemCreatedRS(foundItem.getUuid(), foundItem.getUniqueId());
}
Aggregations