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

0
Avatar
Permanently deleted user

Figured out that package name should be the same.

0

请先登录再写评论。