2010-01-26から1日間の記事一覧
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.…