QUnitAssertion[] qunitFailedAssertions = null;
if (!CollectionUtils.isEmpty(failedAssertionCauseList)) {
qunitFailedAssertions = new QUnitAssertionImpl[failedAssertionCauseList.size()];
int assertionIndex = 0;
for (String errorCause : failedAssertionCauseList) {
qunitFailedAssertions[assertionIndex++] = (new QUnitAssertionImpl()).setFailed(true)
.setMessage(StringUtilities.trim(errorCause != null ? errorCause.toString() : null));
}
}
final QUnitTest qunitTestResult = (new QUnitTestImpl()).setModuleName(moduleName).setName(testName)