Class LogPolicySupport
java.lang.Object
org.powermock.mockpolicies.support.LogPolicySupport
A support class for mock policies dealing with logging frameworks.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LogPolicySupport
public LogPolicySupport()
-
-
Method Details
-
getLoggerMethods
public Method[] getLoggerMethods(String fullyQualifiedClassName, String methodName, String logFramework) Get the methods that should be mocked.- Parameters:
fullyQualifiedClassName
- The fully-qualified name to the class that contains the method.methodName
- The name of the method that should be mocked.logFramework
- The log framework that should be printed if the classfullyQualifiedClassName
cannot be found.- Returns:
- The
Method
's that should be mocked.
-
getType
Get the class type representing the fully-qualified name.- Parameters:
name
- The fully-qualified name of a class to get.logFramework
- The log framework that should be printed if the class cannot be found.- Returns:
- The class representing the fully-qualified name.
- Throws:
Exception
- If something unexpected goes wrong, for example if the class cannot be found.
-