The Dark Powers of PowerMock

Sep 14, 2012 1:12 PM, Lukáš Krejčí [ Original post ]
Recently, we’ve started using Mockito and PowerMock in our testing. I won’t explain mocking and why or why not you should use it, but I want to share my experience with using PowerMock. PowerMock comes with a very strong promise: “PowerMock uses a custom classloader and bytecode manipulation to enable mocking of static methods, constructors, [...]