public final class InvokedMethodInformation extends Object
Constructor and Description |
---|
InvokedMethodInformation() |
Modifier and Type | Method and Description |
---|---|
Method |
getActualMethod() |
<T extends Annotation> |
getAnnotation(Class<T> annotation) |
String |
getCurrentClassName() |
String |
getCurrentMethodName() |
String |
getCurrentTestName() |
Throwable |
getException() |
Object[] |
getMethodParameters() |
String[] |
getMethodsDependedUpon() |
Object |
getTestAttribute(String attributeName) |
boolean |
isTestResultSuccess() |
void |
setActualMethod(Method actualMethod) |
void |
setCurrentMethodName(String currentMethodName) |
void |
setCurrentTestName(String currentTestName) |
void |
setException(Throwable exception) |
void |
setMethodParameters(Object[] methodParameters) |
void |
setMethodsDependedUpon(String[] dependsOnMethods) |
void |
setTestMethodAttributes(Map<String,Object> testMethodAttributes) |
void |
setTestResultSuccess(boolean testResultSuccess) |
String |
toString() |
public boolean isTestResultSuccess()
true
if the test method ran successfully.public void setTestResultSuccess(boolean testResultSuccess)
testResultSuccess
- - Sets a status that represents if a test method passed or not.public String getCurrentTestName()
public void setCurrentTestName(String currentTestName)
currentTestName
- - A String that represents a <test> name.public Throwable getException()
public void setException(Throwable exception)
exception
- - The Throwable
that was raised by a test method.public Method getActualMethod()
Method
that represents the actual method.public void setActualMethod(Method actualMethod)
actualMethod
- - A Method
that represents the actual method.public <T extends Annotation> T getAnnotation(Class<T> annotation)
annotation
- - The annotation which needs to be fetched.Annotation
object that represents the annotation in question.public void setMethodsDependedUpon(String[] dependsOnMethods)
dependsOnMethods
- - An Array of String that represents the list of methods on which the current method depends on.public String[] getMethodsDependedUpon()
public String getCurrentMethodName()
public void setCurrentMethodName(String currentMethodName)
currentMethodName
- - The name of the current method being executed.public Object[] getMethodParameters()
public void setMethodParameters(Object[] methodParameters)
methodParameters
- - An Object
array that represents the current method's parameters.public Object getTestAttribute(String attributeName)
attributeName
- - The name of the attribute whose value is to be fetched.null
otherwise.public void setTestMethodAttributes(Map<String,Object> testMethodAttributes)
testMethodAttributes
- - A Map
that represents the attributes for the current test method.public String getCurrentClassName()
null
the class name is also returned as null
.Copyright © 2016 PayPal Open Source. All rights reserved.