I use the PowerMockito annotation and @PrepareForTest for my test class. When I do this, Sonar says that none of the branches were covered. However, my other test classes that do not use PowerMockito work well. For example:
@RunWith(PowerMockRunner.class) @PrepareForTest({ MyClass.class }) public class MyClassTest {
Is the same problem facing someone?
Thanks in advance.
code-coverage mockito powermock sonarqube
newbieee
source share