I am trying to run a beanshell script (bsh-2.0b4) containing the following code. The intention is to allow JUnit test cases to be written/maintained without compiling. I have tried this with JUnit 3.81 and 4.1. I am on Java 1.4.2
JUnit throws an AssertionError intentionally for the failed assert. I believe it is expected to propagate its way up out of the test function but it looks like Beanshell is intercepting it. Consequently I am seeing it as an "Error" rather than a "Failure" on the test results. If I run the equivalent code without beanshell it reports as a failure.