}
});
}
protected AssertStatement processAssertStatement(StatementContext context) {
AssertStatement assertStatement = createNode(context, AssertStatement.class);
List<ExpressionContext> expressionContexts = getChildren(context, ExpressionContext.class);
if (expressionContexts.size() > 0) {
assertStatement.setExpression(
getAdapter(ExpressionAdapter.class).adapt(expressionContexts.get(0)));
}
if (expressionContexts.size() > 1) {
assertStatement.setErrorMessage(
getAdapter(ExpressionAdapter.class).adapt(expressionContexts.get(1)));
}
return assertStatement;
}