Home »
MCQs »
JUnit MCQs
When the time out exceeds 1000 milliseconds (1 second), the ____ annotation is used to indicate that the method will fail
11. When the time out exceeds 1000 milliseconds (1 second), the ____ annotation is used to indicate that the method will fail.
- @AfterClass
- @Before
- @Test(timeout=1000)
- @After
Answer: C) @Test(timeout=1000)
Explanation:
When the time-out exceeds 1000 milliseconds (1 second), the @Test(timeout=1000) annotation is used to indicate that the method will fail.