Help the world stop coronavirus! Stay home!

Prev Next

JUnit / Junit Interview questions II

Should every Junit test Class with in suite should have main() method?

Not required. However we may add main() method to run only the tests from that Test class.

 public static void main(String[] args) {
   junit.textui.TestRunner.run(MyTestClass.class);
}

❤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

Comments & Discussions