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.

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.



Discussion

No Comment Found