How To Simulate Timeout Situation In Junit?

Report
Question
6 views

Please explain why do you think this question should be reported?

Report Cancel

Junit gives a convenient choice of Timeout. In the event that an test case takes additional time than determined number of milliseconds then Junit will automatically mark it as failed. The timeout parameter is utilized alongside @Test annotation.

Please follow and like us:

About the Author