public class Fixture_ extends BaseObject
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<DataSet> |
datasets
The list of datasets
|
| Constructor and Description |
|---|
Fixture_() |
| Modifier and Type | Method and Description |
|---|---|
void |
__oeunit_data_Fixture__constructor__()
The constructor
|
static void |
__oeunit_data_Fixture__constructor__static__()
The static constructor
|
void |
__oeunit_data_Fixture__destructor__()
The destructor
|
void |
__oeunit_data_Fixture__execute__()
The 'execute' method
|
private logical |
addDataset(java.lang.String method,
java.util.function.Function<DataSet,DataSet> initialize)
Create, initialize and add a fixture dataset.
|
boolean |
createData()
Create data in the attached databases, based on data in dataset tables.
|
logical |
fromDataSet(handle _dsSrc)
Initialize this fixture from a dataset.
|
logical |
fromJson(Text json)
Initialize from a JSON code.
|
logical |
fromJsonfile(Text path)
Initialize from a JSON file.
|
logical |
fromTempTable(handle _ttSrc)
Initialize from a TEMP-TABLE.
|
logical |
fromXml(longchar xml)
Initialize from XML code.
|
logical |
fromXmlfile(character path)
Initialize from an XML file.
|
integer |
getSize()
Get number of datasets in this fixture
|
integer |
getTableCount()
Get total number of tables in all datasets
|
__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, assertNotNull, assertNotNull, getLegacyClass, getNextSibling, getPrevSibling, legacyClone, legacyEquals, toLegacyStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTrackedprotected final java.util.List<DataSet> datasets
public static void __oeunit_data_Fixture__constructor__static__()
public void __oeunit_data_Fixture__constructor__()
public void __oeunit_data_Fixture__destructor__()
public void __oeunit_data_Fixture__execute__()
public final boolean createData()
true if the operation succeeded, false if there is no
datasets in this fixture or any error occurred while creating data from the datasets.public logical fromDataSet(handle _dsSrc)
_dsSrc - the source dataset handletrue if the operation succeededpublic logical fromJson(Text json)
json - the JSON codetrue if the operation succeededpublic logical fromJsonfile(Text path)
path - the JSON filetrue if the operation succeededpublic logical fromTempTable(handle _ttSrc)
_ttSrc - the source TEMP-TABLE handletrue if the operation succeededpublic logical fromXml(longchar xml)
xml - source XML texttrue if the operation succeededpublic logical fromXmlfile(character path)
path - the XML filetrue if the operation succeededpublic integer getSize()
public integer getTableCount()
private logical addDataset(java.lang.String method, java.util.function.Function<DataSet,DataSet> initialize)
method - the legacy method nameinitialize - function to initialize dataset, on success returns the dataset, or error
returns nulltrue on success