Help the world stop coronavirus! Stay home!

Prev Next

JUnit / Junit Interview questions III

Junit: How do I test a protected method?

In Java, a protected method can only be accessed within the same package where the class is defined. So, define your Junit test class in the same package as the target 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