Content from 2024

By devin, 15 August, 2024

My team at work used to use PowerMock to verify logging. Generally you don't need to verify logging, but occasionally you have an outage and realize it's important to verify in a unit test that logging is working correctly. Hence we created this utility class that avoids the need for static mocking.

Why is logging so hard? It's because you have a class like so: