Hi, I'm new to the PIT. Our report shows some failed test but I didn't understand.
I'm testing this log method:
return !StringUtils.equalsIgnoreCase(status.getStatus(), "SHIPPED")
&& !StringUtils.equalsIgnoreCase(status.getStatus(), "CANCELLED")
&& !StringUtils.equalsIgnoreCase(status.getStatus(), "CUSTOMER_PICKED_UP");
Has a failed:
negated conditional → SURVIVED
For each line.
And we have
eligibleStatuses.forEach(status -> logMessage.append(" , Qty = " + status.getQuantity() + " , Status = " + status.getStatus()));
Failed with:
removed call to java/util/stream/Stream::forEach → SURVIVED
How to solve these two issues?