public class LogPolicySupport
extends java.lang.Object
| Constructor and Description |
|---|
LogPolicySupport() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method[] |
getLoggerMethods(java.lang.String fullyQualifiedClassName,
java.lang.String methodName,
java.lang.String logFramework)
Get the methods that should be mocked.
|
java.lang.Class<?> |
getType(java.lang.String name,
java.lang.String logFramework)
Get the class type representing the fully-qualified name.
|
public java.lang.reflect.Method[] getLoggerMethods(java.lang.String fullyQualifiedClassName,
java.lang.String methodName,
java.lang.String logFramework)
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 class
fullyQualifiedClassName cannot be found.Method's that should be mocked.public java.lang.Class<?> getType(java.lang.String name,
java.lang.String logFramework)
throws java.lang.Exception
name - The fully-qualified name of a class to get.logFramework - The log framework that should be printed if the class cannot
be found.java.lang.Exception - If something unexpected goes wrong, for example if the class
cannot be found.