public interface MockPolicyInitializer
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.lang.ClassLoader classLoader)
Initializes the mock policies for a given class loader.
|
boolean |
isPrepared(java.lang.String fullyQualifiedClassName) |
boolean |
needsInitialization() |
void |
refreshPolicies(java.lang.ClassLoader classLoader)
Re executes the
MockPolicy of all the policies for a given class
loader. |
void initialize(java.lang.ClassLoader classLoader)
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.
boolean needsInitialization()
boolean isPrepared(java.lang.String fullyQualifiedClassName)
true
if the class with the fully-qualified name of
fullyQualifiedClassName
was prepared for testing by
this mock policy initializer.void refreshPolicies(java.lang.ClassLoader classLoader)
MockPolicy
of all the policies for a given class
loader. This method must be called after a call to
initialize(ClassLoader)
on the same class
loader.
Note that if the class-loader is not an instance of
MockClassLoader
this method will return silently.