public class JclMockPolicy extends Object
Constructor and Description |
---|
JclMockPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
applyClassLoadingPolicy(MockPolicyClassLoadingSettings settings)
Apply all class-loading related policies that must be present before the
interception policies can take place.
|
void |
applyInterceptionPolicy(MockPolicyInterceptionSettings settings)
Apply the interception policies, for example which methods that should be
suppressed or which methods that should be intercepted and return some
else than their original value.
|
protected String[] |
getFullyQualifiedNamesOfClassesToLoadByMockClassloader()
Loads all log4j classes with the mock classloader.
|
protected String |
getLogFrameworkName() |
protected String |
getLoggerClassToMock() |
protected String |
getLoggerFactoryClassName() |
protected String |
getLoggerMethodName() |
protected String[] getFullyQualifiedNamesOfClassesToLoadByMockClassloader()
protected String getLogFrameworkName()
getLoggerFactoryClassName()
cannot be
found in the classpath.protected String getLoggerClassToMock()
protected String getLoggerFactoryClassName()
protected String getLoggerMethodName()
public void applyClassLoadingPolicy(MockPolicyClassLoadingSettings settings)
PowerMockPolicy
applyClassLoadingPolicy
in interface PowerMockPolicy
settings
- The settings objects where the class-loading policies can be
applied.public void applyInterceptionPolicy(MockPolicyInterceptionSettings settings)
PowerMockPolicy
applyInterceptionPolicy
in interface PowerMockPolicy
settings
- The settings objects where the interception policies can be
applied.Copyright © 2019. All rights reserved.