org.powermock.tests.utils
Interface MockPolicyInitializer

All Known Implementing Classes:
MockPolicyInitializerImpl

public interface MockPolicyInitializer

A Mock Policy initializer takes care of initializing the behavior defined by the mock policies.


Method Summary
 void initialize(ClassLoader classLoader)
          Initializes the mock policies for a given class loader.
 boolean isPrepared(String fullyQualifiedClassName)
           
 boolean needsInitialization()
           
 

Method Detail

initialize

void initialize(ClassLoader classLoader)
Initializes the mock policies for a given class loader. Note that this method must not be called from the class loader ( classLoader) that you pass in to this method.

Note that if the class-loader is not an instance of MockClassLoader this method will return silently.


needsInitialization

boolean needsInitialization()
Returns:
true if a client needs to perform initialization for this MockPolicyInitializer, false otherwise.

isPrepared

boolean isPrepared(String fullyQualifiedClassName)
Returns:
true if the class with the fully-qualified name of fullyQualifiedClassName was prepared for testing by this mock policy initializer.


Copyright © 2007-2013. All Rights Reserved.