The system to set up a test that expects an error should be improved.
Specifically:
~ instead of specifying the expected error message when defining the test case, the error message should be specified in the test method;
~ a test method should also be allowed to indicate that an error is expected without necessarily specifying the expected error message;
~ finally, the matching of an expected error with the actual error generated during the execution of a test method should be modified to be independent from the stack trace generated by default when an error is thrown.
|