org.powermock.core.classloader.annotations
Annotation Type PrepareEverythingForTest


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface PrepareEverythingForTest

This annotation tells PowerMock to prepare all classes (except certain system and test related classes) for test. Note that static initializers are not removed.

The annotation should always be combined with the @RunWith(PowerMockRunner.class) if using junit 4.x or

 public static TestSuite suite() throws Exception {
        return new PowerMockSuite(MyTestCase.class);
 }
 
if using junit3.



Copyright © 2007-2012. All Rights Reserved.