1 21 22 package org.dbunit.dataset; 23 24 import org.dbunit.dataset.xml.FlatXmlDataSet; 25 26 import java.io.FileReader ; 27 28 33 public class LowerCaseDataSetTest extends AbstractDataSetTest 34 { 35 public LowerCaseDataSetTest(String s) 36 { 37 super(s); 38 } 39 40 protected IDataSet createDataSet() throws Exception 41 { 42 return new LowerCaseDataSet(new FlatXmlDataSet(new FileReader ( 43 "src/xml/flatXmlDataSetTest.xml"))); 44 } 45 46 protected IDataSet createDuplicateDataSet() throws Exception 47 { 48 return new LowerCaseDataSet(new FlatXmlDataSet(new FileReader ( 49 "src/xml/flatXmlDataSetDuplicateTest.xml"))); 50 } 51 52 protected String [] getExpectedNames() throws Exception 53 { 54 return getExpectedLowerNames(); 55 } 56 57 protected String [] getExpectedDuplicateNames() 58 { 59 String [] names = super.getExpectedDuplicateNames(); 60 for (int i = 0; i < names.length; i++) 61 { 62 names[i] = names[i].toLowerCase(); 63 } 64 65 return names; 66 } 67 68 69 } 70 71 72 | Popular Tags |