classNotPreparedForTest exception, using JUNIT5, MOCKITO and POWERMOCKITO

19 Views Asked by At

We are using JUNIT 5.3.2, MOCKITO 2+ and powermock 2.0.0

I have added JUNIT and Mockito as testImplementation only. Powermockito as runTimeOnly

I am getting classNotPreparedForTest exception while I exceute Powermockito.mockstatic(Classfile.class);

Even though to my test class I have used @RunWith and @PrepareTest

I did try to look out for some answers could find any helpful suggestions to fix the exception, looking forward for some answers

0

There are 0 best solutions below