Skip to content

Commit

Permalink
RAP-121 Remove the SQL Resource Assertions before compare 2 RVF reports
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 committed Jan 20, 2025
1 parent b525ec6 commit ae7b512
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void compareReports(ValidationComparisonReport report, ValidationStatusRe
leftAllTestRunItems.addAll(leftResultReport.getAssertionsSkipped());
leftAllTestRunItems.addAll(leftResultReport.getAssertionsWarning());
Map<String, TestRunItem> leftTestRunItemToUUIDMap = leftAllTestRunItems.stream()
.filter(i -> !TestType.MRCM.equals(i.getTestType()))
.filter(i -> !TestType.MRCM.equals(i.getTestType()) && !"resource".equals(i.getTestCategory()))
.collect(Collectors.toMap(i -> i.getAssertionUuid().toString(), Function.identity()));

List<TestRunItem> rightAllTestRunItems = new ArrayList <>();
Expand All @@ -148,7 +148,7 @@ public void compareReports(ValidationComparisonReport report, ValidationStatusRe
rightAllTestRunItems.addAll(rightResultReport.getAssertionsSkipped());
rightAllTestRunItems.addAll(rightResultReport.getAssertionsWarning());
Map<String, TestRunItem> rightTestRunItemToUUIDMap = rightAllTestRunItems.stream()
.filter(i -> !TestType.MRCM.equals(i.getTestType()))
.filter(i -> !TestType.MRCM.equals(i.getTestType()) && !"resource".equals(i.getTestCategory()))
.collect(Collectors.toMap(i -> i.getAssertionUuid().toString(), Function.identity()));

Collection removedIDs = CollectionUtils.subtract(leftTestRunItemToUUIDMap.keySet(), rightTestRunItemToUUIDMap.keySet());
Expand Down

0 comments on commit ae7b512

Please sign in to comment.