org.jboss.arquillian.persistence.data.dbunit.dataset.yaml
Class YamlDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.CachedDataSet
org.jboss.arquillian.persistence.data.dbunit.dataset.yaml.YamlDataSet
- All Implemented Interfaces:
- org.dbunit.dataset.IDataSet, org.dbunit.dataset.stream.IDataSetConsumer
public class YamlDataSet
- extends org.dbunit.dataset.CachedDataSet
DBUnit data set produced from YAML format. Each table has its own
section in the YAML document, where its' name is the root element
indicating that following entries are describing rows using column name : value pairs.
Each new row is denoted by '-', as in following example:
useraccount:
- id: 1
firstname: Clark
lastname: Kent
username: superman
password: kryptonite
address:
- id: 1
streetname: "Kryptonite Street"
houseNumber: 7
city: Metropolis
zipCode: 1234
useraccount_address:
- useraccount_id: 1
addresses_id: 1
- Author:
- Bartosz Majsak
| Fields inherited from class org.dbunit.dataset.AbstractDataSet |
_orderedTableNameMap |
| Methods inherited from class org.dbunit.dataset.CachedDataSet |
createIterator, endDataSet, endTable, row, startDataSet, startTable |
| Methods inherited from class org.dbunit.dataset.AbstractDataSet |
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString |
YamlDataSet
public YamlDataSet(YamlDataSetProducer producer,
boolean caseSensitiveTableNames)
throws org.dbunit.dataset.DataSetException
- Throws:
org.dbunit.dataset.DataSetException
YamlDataSet
public YamlDataSet(File file,
boolean caseSensitiveTableNames)
throws org.dbunit.dataset.DataSetException,
FileNotFoundException
- Throws:
org.dbunit.dataset.DataSetException
FileNotFoundException
YamlDataSet
public YamlDataSet(File file)
throws IOException,
org.dbunit.dataset.DataSetException
- Throws:
IOException
org.dbunit.dataset.DataSetException
YamlDataSet
public YamlDataSet(YamlDataSetProducer producer)
throws org.dbunit.dataset.DataSetException
- Throws:
org.dbunit.dataset.DataSetException
YamlDataSet
public YamlDataSet(InputStream inputStream)
throws org.dbunit.dataset.DataSetException
- Throws:
org.dbunit.dataset.DataSetException
YamlDataSet
public YamlDataSet(InputStream inputStream,
boolean caseSensitiveTableNames)
throws org.dbunit.dataset.DataSetException
- Throws:
org.dbunit.dataset.DataSetException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.