JUnit / Junit Interview questions
Differentiate JUnit 4 and TestNG.
in Java, JUnit 4 and TestNG are popular unit test framework and look very similar in functionality.
TestNG supports annotation @BeforeSuite that enables running a method before even the suite runs whereas Junit 4 does not support.
TestNG supports @AfterSuite that enables running a method after the suite completes running whereas Junit 4 does not support.
Similarly TestNG adds support for test specific and groups specific before (setup )and After (teardown) annotation whereas Junit does not support.
More Related questions...