Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
finding-0
In File:
org/testng/asserts/SoftAssert.java
In Method:
assertAll()
Code with Finding:
class SoftAssert {
public void assertAll() {
if (!m_errors.isEmpty()) {
StringBuilder sb = new StringBuilder("The following asserts failed:");
boolean first = true;
for (Map.Entry<AssertionError, IAssert<?>> ae : m_errors.entrySet()) {
if (first) {
first = false;
} else {
sb.append(",");
}
sb.append("\n\t");
sb.append(ae.getKey().getMessage());
}
throw new AssertionError(sb.toString());
}
}
}