1.

Which annotation implies that a method is a JUnit test case?(a) @junit(b) @testcase(c) @org.Test(d) @org.junit.TestThe question was posed to me in an interview for internship.The doubt is from Exploring Core JUnit topic in section Exploring Core JUnit of JUnit

Answer» RIGHT answer is (d) @org.JUNIT.Test

To EXPLAIN: ANNOTATE a METHOD with @org.junit.Test to imply that it is a JUnit test case.


Discussion

No Comment Found

Related InterviewSolutions