public void testProcedureExpression() {
log.debug("Testing ProcedureExpression");
// name
try {
new ProcedureExpression(null).getName();
fail("ProcedureExpression's name can't be null");
} catch (Exception e) {
// normal
}
assertEquals("ProcedureExpression's name must be 'proc1'", "proc1",
new ProcedureExpression("proc1").getName());
// evaluating
try {
new ProcedureExpression("proc1").evaluate(this.resolver);
fail("ProcedureExpression should not be evaluatable");
} catch (Exception e) {
// normal
}
}