// Test the assertion
// Check for correct use value
for (int i = 0; i < soapFaults.length; i++)
{
SOAPFault soapFault = soapFaults[i];
if (soapFault.getUse() != null
&& !soapFault.getUse().equals(WSIConstants.ATTRVAL_SOAP_BODY_USE_LIT))
{
result = AssertionResult.RESULT_FAILED;
failureDetailMessage =
(failureDetailMessage == null
? soapFault.toString()
: failureDetailMessage + "\n\n" + soapFault.toString());
if (failureDetail == null)
failureDetail =
this.validator.createFailureDetail(failureDetailMessage, entryContext);
else
failureDetail.setFailureMessage(failureDetailMessage);