TestNg protected method

I have testNg test case that calls protected method.
Idea is giving red line on the method.
But TestNG should be able to call protected method, is not it?


Any ideas what is missing?
Even I can not run test case. It is telling the method is protected. And does not compile it.


1 comment
Comment actions Permalink

Figured out that package name should be the same.


Please sign in to leave a comment.