Is your feature request related to a problem? Please describe.
When using the Method ReflectionTestUtils:invokeMethod to execute student code, and the code of the student throws an exception, the following error message gets shown:
This message contains the exception type and message, but not where this exception was thrown.
Describe the solution you'd like
Ares already has a feature to include the potential problem location to exception. This should be reused here and added to the test feedback.
Describe alternatives you've considered
The current workaround is to use invokeMethodRethrowing instead of invokeMethod.
Is your feature request related to a problem? Please describe. When using the Method
ReflectionTestUtils:invokeMethod
to execute student code, and the code of the student throws an exception, the following error message gets shown:This message contains the exception type and message, but not where this exception was thrown.
Describe the solution you'd like Ares already has a feature to include the potential problem location to exception. This should be reused here and added to the test feedback.
Describe alternatives you've considered The current workaround is to use
invokeMethodRethrowing
instead ofinvokeMethod
.Ares-Version you are using 1.11.1