Annotation Type PrepareEverythingForTest


  • @Target({TYPE,METHOD})
    @Retention(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.
    • Element Detail

      • byteCodeFramework

        ByteCodeFramework byteCodeFramework
        Default:
        org.powermock.core.classloader.ByteCodeFramework.Javassist