-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generator
Description
Description
The generated tests code looks as follows:
public void testSetImage2() throws Throwable, Exception { ... }
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
public void testSetImage2() throws Throwable { ... }
- if throwable is really not required
public void testSetImage2() throws Exception { ... }
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
}
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generator
Type
Projects
Status
Done