Use this tag for questions about PowerMockito, a Java Framework that allows the mocking of usually un-mockable types, i.e. statics, and private methods, in conjunction with the Mockito framework.
I have the following code which is getting the current counter value from DB. Then it updates the counter in …
java mocking mockito powermockitoWe are using PowerMock in few of our historical projects. Unfortunately PowerMock is quite dead and is not compatible with …
java junit powermock powermockitoThis is the same question as found here. Unfortunately, the accepted answer isn't working for me. I have a static …
java unit-testing mocking powermockitoWhat is wrong with the UUID.randomUUID() - it just can't be mocked Is it possible to mock? Or i …
java junit4 powermockitoAfter migrating my JAVA EE app. (Spring Web model-view-controller (MVC) framework) from Ant to Maven I have some errors executing …
java spring-mvc junit mockito powermockitoI'm using PowerMockito and spy to mock private methods: final SomeClass someClass = new SomeClass(); final SomeClass spy = PowerMockito.spy(someClass); …
java junit powermock powermockitoI am trying to mock the class KeyStore. After mocking I do not want anything to happen when the load …
java unit-testing mockito powermock powermockitoI am writing a test case using JUnit and the method under test takes a final class with a private …
java junit mockito powermockitoI need to mock a static final class in my Junit test: private MyFinalClient client; @Before public void setup() { // set …
java unit-testing powermockitoI want to test a class that calls an object (static method call in java) but I'm not able to …
android unit-testing kotlin mockito powermockito