1 21 package org.dbunit.database; 22 23 import org.dbunit.DatabaseEnvironment; 24 import org.dbunit.dataset.AbstractTableTest; 25 import org.dbunit.dataset.ITable; 26 import org.dbunit.operation.DatabaseOperation; 27 28 33 public class CachedResultSetTableTest extends AbstractTableTest 34 { 35 public CachedResultSetTableTest(String s) 36 { 37 super(s); 38 } 39 40 protected ITable createTable() throws Exception 41 { 42 DatabaseEnvironment env = DatabaseEnvironment.getInstance(); 43 IDatabaseConnection connection = env.getConnection(); 44 45 DatabaseOperation.CLEAN_INSERT.execute(connection, env.getInitDataSet()); 46 47 String selectStatement = "select * from test_table order by COLUMN0"; 48 return new CachedResultSetTable( 49 new ForwardOnlyResultSetTable("TEST_TABLE", selectStatement, connection)); 50 } 51 52 public void testGetMissingValue() throws Exception 53 { 54 } 56 } 57 | Popular Tags |