Mock static

2019/02/22 powerMock

mock static

@RunWith(PowerMockRunner.class)
@PrepareForTest({X.class, Y.class, Z.class})
@SuppressStaticInitializationFor("some.package.ClassWithStaticInit")

Search

    Table of Contents