1 21 22 package org.dbunit.dataset; 23 24 import org.dbunit.dataset.xml.XmlDataSet; 25 26 import java.io.FileReader ; 27 28 33 public class DefaultDataSetTest extends AbstractDataSetTest 34 { 35 public DefaultDataSetTest(String s) 36 { 37 super(s); 38 } 39 40 protected IDataSet createDataSet() throws Exception 41 { 42 IDataSet dataSet = new XmlDataSet( 43 new FileReader ("src/xml/dataSetTest.xml")); 44 ITable[] tables = DataSetUtils.getTables(dataSet); 45 46 return new DefaultDataSet(tables); 47 } 48 49 protected IDataSet createDuplicateDataSet() throws Exception 50 { 51 IDataSet dataSet = new XmlDataSet( 52 new FileReader ("src/xml/xmlDataSetDuplicateTest.xml")); 53 ITable[] tables = DataSetUtils.getTables(dataSet); 54 55 return new DefaultDataSet(tables); 56 } 57 } 58 59 60 61 62 | Popular Tags |