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
{{ message }}
Repository navigation
Minimize exceptions in test methods signature #344
Throwing both Exception and Throwable is odd.
Can be reproduced with ContestEstimator on PDVisibleSignDesigner , method setImage
Expected behavior
The signature looks like
if Throwable is really required
publicvoidtestSetImage2() throwsThrowable { ... }
if throwable is really not required
publicvoidtestSetImage2() throwsException { ... }
Context
Possibly the reason of this problem is in
//If [InvocationTargetException] is thrown manually in test, we // to add "throws Throwable" and other exceptions are not required so on.if (methodId == getTargetException) {
collectedExceptions.clear()
addException(Throwable::class.id)
return
}
changed the title [-]Do not generate other throws in method signature if 'throws Throwable' is present.[/-][+]Minimize exceptions in test methods signature[/+]on Jul 5, 2022
Activity
EgorkaKulikov commentedon Jun 29, 2022
Another example on the same class
EgorkaKulikov commentedon Jun 29, 2022
[-]Do not generate other throws in method signature if 'throws Throwable' is present.[/-][+]Minimize exceptions in test methods signature[/+]