* This method IS used, but it's invoked using reflection from the
* invokeInitializeInterceptionSettingsFromClassLoader method.
*/
@SuppressWarnings("unused")
private void initializeInterceptionSettings() {
MockPolicyInterceptionSettings interceptionSettings = getInterceptionSettings();
for (Method method : interceptionSettings.getMethodsToSuppress()) {
MockRepository.addMethodToSuppress(method);
}
for (Entry<Method, InvocationHandler> entry : interceptionSettings.getProxiedMethods().entrySet()) {
MockRepository.putMethodProxy(entry.getKey(), entry.getValue());
}
for (Entry<Method, Object> entry : interceptionSettings.getStubbedMethods().entrySet()) {
final Method method = entry.getKey();
final Object className = entry.getValue();
MockRepository.putMethodToStub(method, className);
}
for (Field field : interceptionSettings.getFieldsToSuppress()) {
MockRepository.addFieldToSuppress(field);
}
for (String type : interceptionSettings.getFieldTypesToSuppress()) {
MockRepository.addFieldTypeToSuppress(type);
}
}