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?

idea-testng-protected.jpg

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

thanks

1 comment

Figured out that package name should be the same.

0

Please sign in to leave a comment.