Closed
Description
Description
Timeout exception (internal of UtBot) is added to Java docs.
Tag @utbot.throwsException should be used for exceptions from user code only.
To Reproduce
Generate tests for the following code:
public class A {
public int hangForSeconds(int seconds) {
for (int i = 0; i < seconds; i++) {
Thread.sleep(1000);
}
return seconds;
}
}
Visual proofs (screenshots, logs, images)
For example, the following summaries are generated:
/**
* @utbot.classUnderTest {@link OrderService}
* @utbot.methodUnderTest {@link OrderService#getOrders()}
* @utbot.invokes {@link OrderRepository#findAll()}
* @utbot.returnsFrom {@code return orderRepository.findAll();}
* @utbot.throwsException {@link org.utbot.framework.plugin.api.TimeoutException} in: return orderRepository.findAll();
*/
The last line is erroneous. We should not see utbot exceptions in summaries.
Additional context
Previously fixed bug with similar error:
Connected feature request:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done