1.

Which one of the following is not an annotation used by Junit with Junit4?(a) @Test(b) @BeforeClass(c) @AfterClass(d) @IgnoredI have been asked this question in an interview for job.Origin of the question is Annotations in chapter Application Lifecycle & Annotations of Java

Answer»

Correct ANSWER is (d) @Ignored

Explanation: @Test, @Before, @BeforeClass, @After, @AfterClass and @Ignores are the annotations USED by Junit with JUNIT4.



Discussion

No Comment Found

Related InterviewSolutions