Skip to content

Commit

Permalink
ZEPHYR-28726: Ignore statusId if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
pv-smartbear committed Apr 6, 2020
1 parent 55c2ef7 commit 0a3ca0b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -862,7 +862,9 @@ public Map<TCRCatalogTreeTestcase, Map<String, Object>> createTestcasesFromMap(M
if (tcrCatalogTreeTestcase.getTestcase().getName().equals(entry.getKey()) && tcrCatalogTreeTestcase.getTcrCatalogTreeId().equals(treeId)) {
//same testcase, add id and status to map
Map<String, Object> statusMap = new HashMap<>();
statusMap.put("statusId", entry.getValue().get("statusId"));
if(entry.getValue().containsKey("statusId")) {
statusMap.put("statusId", entry.getValue().get("statusId"));
}

MapTestcaseToRequirement mapTestcaseToRequirement = (MapTestcaseToRequirement) entry.getValue().get("mapTestcaseToRequirement");
mapTestcaseToRequirement.setTestcaseId(tcrCatalogTreeTestcase.getTestcase().getId());
Expand Down

0 comments on commit 0a3ca0b

Please sign in to comment.