1 21 package org.dbunit.dataset.filter; 22 23 import org.dbunit.dataset.AbstractTableIteratorTest; 24 import org.dbunit.dataset.ITableIterator; 25 import org.dbunit.dataset.MockDataSet; 26 27 32 public class SequenceTableIteratorTest extends AbstractTableIteratorTest 33 { 34 public SequenceTableIteratorTest(String s) 35 { 36 super(s); 37 } 38 39 protected ITableIterator getIterator() throws Exception 40 { 41 String [] expectedNames = getExpectedNames(); 42 MockDataSet dataSet = new MockDataSet(); 43 for (int i = 0; i < expectedNames.length; i++) 44 { 45 String tableName = expectedNames[i]; 46 dataSet.addEmptyTable(tableName); 47 } 48 49 return new SequenceTableIterator(expectedNames, dataSet); 50 } 51 52 protected ITableIterator getEmptyIterator() throws Exception 53 { 54 return new SequenceTableIterator(new String [0], new MockDataSet()); 55 } 56 } 57 | Popular Tags |