lineNumber = el.getLineNumber();
columnNumber = el.getColumnNumber();
}
assertionerrors.add(
new AssertionError(ta.getId(), ta.getFailureMessage(), lineNumber, columnNumber));
}
}
// the errorMessageList is null but there is an error so assign it to line 0 for now
else
{
assertionerrors.add(new AssertionError(ta.getId(), ta.getFailureMessage(), 0, 0));
}
}
}
else if (ar.getResult().equalsIgnoreCase(FAILED) &&
wsiPreferences.getComplianceLevel().equals(WSITestToolsProperties.WARN_NON_WSI))
{
if (ta.isEnabled())
{
List errorMessageList = ar.getFailureDetailList();
if (errorMessageList != null)
{
Iterator errorMessages = errorMessageList.iterator();
while (errorMessages.hasNext())
{
FailureDetailImpl fdi = (FailureDetailImpl) errorMessages.next();
int lineNumber = 0;
int columnNumber = 0;
ElementLocation el = fdi.getElementLocation();
if (el != null)
{
lineNumber = el.getLineNumber();
columnNumber = el.getColumnNumber();
}
assertionwarnings.add(
new AssertionError(ta.getId(), ta.getFailureMessage(), lineNumber, columnNumber));
}
}
// the errorMessageList is null but there is an error so assign it to line 0 for now
else
{
assertionwarnings.add(new AssertionError(ta.getId(), ta.getFailureMessage(), 0, 0));
}
}
}
}
}