List params = proc.getParameters();
// Remove all but IN and IN/OUT params
Iterator paramIter = params.iterator();
while (paramIter.hasNext()) {
final SPParameter param = (SPParameter)paramIter.next();
if (param.getParameterType() != ParameterInfo.IN && param.getParameterType() != ParameterInfo.INOUT) {
paramIter.remove();
}
}
// Check remaining params against expected expressions
assertEquals(expectedParameterExpressions.length, params.size());
for (int i=0; i<expectedParameterExpressions.length; i++) {
SPParameter param = (SPParameter)params.get(i);
if (expectedParameterExpressions[i] == null) {
assertNull(param.getExpression());
} else {
assertEquals(expectedParameterExpressions[i], param.getExpression());
}
}
return proc;
}