public interface MockPolicyInitializer
Modifier and Type | Method and Description |
---|---|
void |
initialize(ClassLoader classLoader)
Initializes the mock policies for a given class loader.
|
boolean |
isPrepared(String fullyQualifiedClassName) |
boolean |
needsInitialization() |
void |
refreshPolicies(ClassLoader classLoader)
Re executes the
MockPolicy of all the policies for a given class
loader. |
void initialize(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(String fullyQualifiedClassName)
true
if the class with the fully-qualified name of
fullyQualifiedClassName
was prepared for testing by
this mock policy initializer.void refreshPolicies(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.
Copyright © 2019. All rights reserved.