I’m working on trying to get an application up and running in Lucee 5. There are some places (mainly unit tests) that are relying on the ColdFusion “coldfusion.runtime.MissingArgumentException” exception to determine if required arguments are missing.
When I dump a stack trace, it would appear the equivalent exception would be lucee.runtime.exp.ExpressionException.
However, at least for MXUnit, replacing expectException(“coldfusion.runtime.MissingArgumentException”) with expectionException(“lucee.runtime.exp.ExpressionException”) does not work.
MXUnit unit checks either the exception’s “type” string (which Lucee returns as “expression”) or getMetaData(exception).getName() (which Lucee returns as “lucee.runtime.exp.CatchBlockImpl”).
I think the issue is that MXUnit is doing a try/catch so the original exception is getting lost.
Any one know how I might fix the unit tests for Lucee?