Category "powermockito"

Using PowerMock in JDK 16

Java reflection is becoming more and more restricted: Up to Java 8 all operations are allowed Starting from Java 9 to 15 you are still able to perform the opera

Using PowerMockito with ArgumentCaptor

I simply try to test the following part of my service method: if (isDeleted) { LoggingUtils.info("Deleted. ingredientUuuid: {}", ingredient.getUuid()); } I

org.powermock.api.mockito.ClassNotPreparedException when it's declared to be prepared

I don't understand why this is showing since my test definitely asked PowerMock to prepare for it. @PrepareForTest({AmazonSQSClientBuilder.class}) @RunWith(Powe

how to mock UUID?

is it possible to mock UUID? or any problem in my Source Code? Look at exmaple: MyTest Class @RunWith(PowerMockRunner.class) @PrepareForTest({UUID.class,Ac

mock-maker-inline - Could not initialize inline Byte Buddy mock maker (power-mockito + jdk 8 + bytebuddy)

I am using Powermockito to mock and spy static classes. Version: 2.0.4 Also using mockito-core version 3.0.0. In, one of my projects, i am able to mockStatic b