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
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
}
The text was updated successfully, but these errors were encountered:
EgorkaKulikov
changed the title
Do not generate other throws in method signature if 'throws Throwable' is present.
Minimize exceptions in test methods signature
Jul 5, 2022
Description
The generated tests code looks as follows:
Throwing both
Exception
andThrowable
is odd.Can be reproduced with
ContestEstimator
onPDVisibleSignDesigner
, methodsetImage
Expected behavior
The signature looks like
Context
Possibly the reason of this problem is in
The text was updated successfully, but these errors were encountered: