org.powermock.api.easymock.powermocklistener
Class AnnotationEnabler

java.lang.Object
  extended by org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
      extended by org.powermock.api.extension.listener.AnnotationEnabler
          extended by org.powermock.api.easymock.powermocklistener.AnnotationEnabler
All Implemented Interfaces:
AnnotationEnablerListener, PowerMockTestListener

Deprecated. Test Runners uses an annotation enabling listener per default since version 1.3. You should just remove this listener.

public class AnnotationEnabler
extends AnnotationEnabler

Before each test method all fields annotated with Mock, MockNice or MockStrict will have mock objects created for them and injected to the fields.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.powermock.api.extension.listener.AnnotationEnabler
AnnotationEnabler.FieldInjector
 
Constructor Summary
AnnotationEnabler()
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.powermock.api.extension.listener.AnnotationEnabler
beforeTestMethod, getMockAnnotations, injectDefaultMocks, injectNiceMocks, injectStrictMocks
 
Methods inherited from class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
afterTestMethod, afterTestSuiteEnded, beforeTestSuiteStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.powermock.core.spi.PowerMockTestListener
afterTestMethod, afterTestSuiteEnded, beforeTestSuiteStarted
 

Constructor Detail

AnnotationEnabler

public AnnotationEnabler()
Deprecated. 


Copyright © 2007-2012. All Rights Reserved.