InterviewSolution
Saved Bookmarks
| 1. |
How to simulate timeout situation in JUnit? |
|
Answer» Junit provides a handy option of Timeout. If a test case takes more time than specified number of milliseconds then Junit will automatically mark it as failed. The timeout parameter is used along with Test annotation. |
|