Use this tag for questions about PowerMock, a Java library for creating mock objects for classes and methods.
I woud like to write a JUnit test to verify that the code below uses a BufferedInputStream: public static final …
java mockito anonymous-class powermock object-constructionI have a structure like this: public class CacheWrapper { private Map<Object, Object> innerMap; public CacheWrapper() { //initialize the …
java unit-testing exception powermock easymockI want to mock an inherited protected method. I can't call this method directly from java code as it is …
java mockito powermock powermockitoI'm running a junit test case using the PowerMock test runner. I'm using the following command line to execute it: …
java unit-testing junit easymock powermockI am trying to use Powermock and Mockito to mock a void static method to throw exception as below. But …
java unit-testing mockito powermockI have a folder path set in system variable through JVM arguments in Eclipse and I am trying to access …
java mocking environment-variables system powermock