Help the world stop coronavirus! Stay home!

Prev Next

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.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Junit Interview questions III

Comments & Discussions