Skip to content

Commit

Permalink
MAT-7908 fixed test case importing bug for QDM
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-prateekkeerthi committed Dec 6, 2024
1 parent 147d709 commit 333165e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,15 @@ && isEmpty(group.getStratificationValues()))

// Mismatch between target and import Stratification, don't set any expected values
boolean measureHasStrats =
measureGroups.stream().allMatch(group -> isNotEmpty(group.getStratifications()));
measureGroups != null
? measureGroups.stream().allMatch(group -> isNotEmpty(group.getStratifications()))
: false;
if ((measureHasStrats && isEmpty(stratification))
|| (!measureHasStrats && isNotEmpty(stratification))) {
return null;
}

if (measureGroups.size() > 1 && isNotEmpty(stratification)) {
if (measureGroups != null && measureGroups.size() > 1 && isNotEmpty(stratification)) {
Deque<TestCaseStratificationValue> stratificationQueue = new ArrayDeque<>(stratification);
try {
do {
Expand Down

0 comments on commit 333165e

Please sign in to comment.