org.powermock.tests.utils.impl
Class MockPolicyInitializerImpl
java.lang.Object
org.powermock.tests.utils.impl.MockPolicyInitializerImpl
- All Implemented Interfaces:
- MockPolicyInitializer
public class MockPolicyInitializerImpl
- extends Object
- implements MockPolicyInitializer
The default implementation of the MockPolicyInitializer interface for
mock policies.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPolicyInitializerImpl
public MockPolicyInitializerImpl(Class<? extends PowerMockPolicy>[] mockPolicies)
MockPolicyInitializerImpl
public MockPolicyInitializerImpl(Class<?> testClass)
isPrepared
public boolean isPrepared(String fullyQualifiedClassName)
- Specified by:
isPrepared in interface MockPolicyInitializer
- Returns:
true if the class with the fully-qualified name of
fullyQualifiedClassName was prepared for testing by
this mock policy initializer.
needsInitialization
public boolean needsInitialization()
- Specified by:
needsInitialization in interface MockPolicyInitializer
- Returns:
true if a client needs to perform initialization for
this MockPolicyInitializer, false otherwise.
initialize
public 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.
- Specified by:
initialize in interface MockPolicyInitializer
Copyright © 2007-2013. All Rights Reserved.