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