You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I wanted to test that a constructor throws an IllegalArgumentException, there is no method in ReflectionTestUtils to do that.
Describe the solution you'd like
A new method (e.g. newInstanceRethrowing), which rethrows the underlying exception (cause), if a problem occurs during instantiation. We would be able to use assertThrows with that method.
Describe alternatives you've considered
I created a method myself:
Is your feature request related to a problem? Please describe.
I wanted to test that a constructor throws an
IllegalArgumentException
, there is no method in ReflectionTestUtils to do that.Describe the solution you'd like
A new method (e.g.
newInstanceRethrowing
), which rethrows the underlying exception (cause), if a problem occurs during instantiation. We would be able to useassertThrows
with that method.Describe alternatives you've considered
I created a method myself:
Ares-Version you are using
1.11.0
The text was updated successfully, but these errors were encountered: