Arquillian Persistence Extension Implementation 1.0.0.Alpha4

org.jboss.arquillian.persistence.data.dbunit.dataset.json
Class JsonDataSet

java.lang.Object
  extended by org.dbunit.dataset.AbstractDataSet
      extended by org.dbunit.dataset.CachedDataSet
          extended by org.jboss.arquillian.persistence.data.dbunit.dataset.json.JsonDataSet
All Implemented Interfaces:
org.dbunit.dataset.IDataSet, org.dbunit.dataset.stream.IDataSetConsumer

public class JsonDataSet
extends org.dbunit.dataset.CachedDataSet

DBUnit data set produced from JSON format.


 {
        "useraccount":
        [
                {
                        "id" : 1,
                        "firstname" : "John",
                        "lastname" : "Smith",
                        "username" : "doovde",
                        "password" : "password"
                },
                {
                        "id" : 2,
                        "firstname" : "Clark",
                        "lastname" : "Kent",
                        "username" : "superman",
                        "password" : "kryptonite",
                        "email" : "arquillian@jboss.org"
                }
        ],

        "testtable":
        [
                {
                        "id" : 1,
                        "value" : "doovde"
                },
                {
                        "id" : 2,
                        "value" : "kryptonite"
                }
        ]
 }
 

Author:
Bartosz Majsak

Field Summary
 
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap
 
Constructor Summary
JsonDataSet(File file)
           
JsonDataSet(File file, boolean caseSensitiveTableNames)
           
JsonDataSet(InputStream inputStream)
           
JsonDataSet(InputStream inputStream, boolean caseSensitiveTableNames)
           
JsonDataSet(JsonDataSetProducer producer)
           
JsonDataSet(JsonDataSetProducer producer, boolean caseSensitiveTableNames)
           
 
Method Summary
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonDataSet

public JsonDataSet(JsonDataSetProducer producer,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

JsonDataSet

public JsonDataSet(File file,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException,
                   FileNotFoundException
Throws:
org.dbunit.dataset.DataSetException
FileNotFoundException

JsonDataSet

public JsonDataSet(File file)
            throws IOException,
                   org.dbunit.dataset.DataSetException
Throws:
IOException
org.dbunit.dataset.DataSetException

JsonDataSet

public JsonDataSet(JsonDataSetProducer producer)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

JsonDataSet

public JsonDataSet(InputStream inputStream)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

JsonDataSet

public JsonDataSet(InputStream inputStream,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

Arquillian Persistence Extension Implementation 1.0.0.Alpha4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.