public class AutoScriptTestContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AutoScriptTestContext |
createCurrentContext()
Creates Integration Context if its not there and returnes it
if no IntegrationContext is assocoated with the current thread.
|
static void |
destroyCurrentContext() |
static AutoScriptTestContext |
getCurrentContext()
Returns Integration Context
|
java.util.Date |
getDateProperty(java.lang.String propName)
Return proprty value for specified property as Date
|
java.lang.Double |
getDoubleProperty(java.lang.String propName)
Return proprty value for specified property as Double
|
java.lang.Integer |
getIntegerProperty(java.lang.String propName)
Return proprty value for specified property as Integer
|
java.lang.String |
getLog()
Return proprty value for specified property as string
|
java.lang.Long |
getLongProperty(java.lang.String propName)
Return proprty value for specified property as Long
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
returns Map of all context properties.
|
java.lang.Object |
getProperty(java.lang.String propName)
Return proprty value for specified property
|
java.lang.String |
getStringProperty(java.lang.String propName)
Return proprty value for specified property as string
|
void |
removeProperty(java.lang.String propName)
Removes property
propName . |
void |
setDoubleProperty(java.lang.String propName,
double val)
Sets property with double value
|
void |
setIntegerProperty(java.lang.String propName,
int val)
Sets property with integer value
|
void |
setLog(java.lang.String value)
Sets property with any value
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
Sets properties from the list
|
void |
setProperty(java.lang.String propName,
java.lang.Object value)
Sets property with any value
|
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String propName)
propName
- property namepublic java.lang.String getStringProperty(java.lang.String propName)
propName
- property namepublic java.lang.String getLog()
propName
- property namepublic java.lang.Integer getIntegerProperty(java.lang.String propName)
propName
- property namepublic java.lang.Long getLongProperty(java.lang.String propName)
propName
- property namepublic void setIntegerProperty(java.lang.String propName, int val)
propName
- property nameval
- property valuepublic void setDoubleProperty(java.lang.String propName, double val)
propName
- property nameval
- property valuepublic java.lang.Double getDoubleProperty(java.lang.String propName)
propName
- property namepublic java.util.Date getDateProperty(java.lang.String propName)
propName
- property namepublic void setProperty(java.lang.String propName, java.lang.Object value)
propName
- property namevalue
- property valuepublic void setLog(java.lang.String value)
propName
- property namevalue
- property valuepublic void removeProperty(java.lang.String propName)
propName
.propName
- name of the property.public void setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
data
- set of properties for the context.public static AutoScriptTestContext getCurrentContext()
public static AutoScriptTestContext createCurrentContext()
create
.public static void destroyCurrentContext()