Package org.appng.testsupport
Class TestBase.DataSourceCall
- java.lang.Object
-
- org.appng.xml.BaseObject
-
- org.appng.xml.platform.DatasourceRef
-
- org.appng.testsupport.TestBase.DataSourceCall
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TestBase
protected class TestBase.DataSourceCall extends DatasourceRef
A wrapper for aDatasourceRef
, allowing to addParam
eters and to retrieve the actualCallableDataSource
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.appng.xml.platform.DatasourceRef
condition, id, mode, pageSize, params, permissions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestBase.DataSourceCall
clearParams()
CallableDataSource
getCallableDataSource()
Returns theCallableDataSource
.Params
getParams()
Gets the value of the params property.TestBase.DataSourceCall
withParam(String name, String value)
Adds aParam
to the wrappedDatasourceRef
.-
Methods inherited from class org.appng.xml.platform.DatasourceRef
getCondition, getId, getMode, getPageSize, getPermissions, setCondition, setId, setMode, setPageSize, setParams, setPermissions
-
-
-
-
Method Detail
-
getParams
public Params getParams()
Description copied from class:DatasourceRef
Gets the value of the params property.- Overrides:
getParams
in classDatasourceRef
- Returns:
- possible object is
Params
-
clearParams
public TestBase.DataSourceCall clearParams()
-
withParam
public TestBase.DataSourceCall withParam(String name, String value)
Adds aParam
to the wrappedDatasourceRef
.- Parameters:
name
- the name of theParam
value
- the value- Returns:
-
getCallableDataSource
public CallableDataSource getCallableDataSource() throws ProcessingException
Returns theCallableDataSource
.- Returns:
- the
CallableDataSource
- Throws:
ProcessingException
- if an error occurs while assembling the CallableDataSource
-
-