jmock mocking a static method

We don’t support mocking static methods in jMock because it doesn’t fit our design approach. We prefer not to use static methods for significant features that can affect the state of the system. We tend to use them just to support the OO code and make it more readable. That’s why we view mocking a … Read more