DEV Community

Discussion on: 10 Essential Testing Frameworks & Libraries for Java Programmers

 
javinpaul profile image
javinpaul

Ah I see, I am sure going to try that on my unit tests now. How about mocking, do you use Mockito or PowerMock? I am a big mockito fan but I always stuck with mocking static fields like Logger in some Java classes.

Thread Thread
 
stealthmusic profile image
Jan Wedel

Definitely Mockito. If you need to use PowerMock you’re probably doing something wrong. Why would you ever need to mock the logger?