test

PowerMockでstatic methodのmock/stubが可能なようだ

Mocking static methods Quick summary 1. Use the @RunWith(PowerMockRunner.class) annotation at the class-level of the test case. 2. Use the @PrepareForTest(ClassThatContainsStaticMethod.class) annotation at the class-level of the test case.…