for (Iterator iterator = logs.iterator(); iterator.hasNext();) {
Object uncastedLog = iterator.next();
if (uncastedLog instanceof ActionHandlerMessageLog) {
ActionHandlerMessageLog log = (ActionHandlerMessageLog) uncastedLog;
DeployPackageStep deployPackageStep = log.getStep();
assert deployPackageStep != null : "Step was not found in the action message log entry: " + log;
assert deployPackageStep.getStepResult() == ContentResponseResult.FAILURE : "Step result was not indicated as a failure. Found: "
+ deployPackageStep.getStepResult();
assert deployPackageStep.getStepErrorMessage() != null : "No message specified for failure";
assert deployPackageStep.getStepErrorMessage().indexOf("is not set") != -1 : "Error message does not indicate the missing parameter: "
+ deployPackageStep.getStepErrorMessage();
assert deployPackageStep.getStepErrorMessage().indexOf("destinationDirectoryLocation") != -1 : "Error message does not indicate the name of the parameter: "
+ deployPackageStep.getStepErrorMessage();
}
}
}