1 21 package org.dbunit.dataset; 22 23 28 public class ForwardOnlyDataSetTest extends DefaultDataSetTest 29 { 30 public ForwardOnlyDataSetTest(String s) 31 { 32 super(s); 33 } 34 35 protected IDataSet createDataSet() throws Exception 36 { 37 return new ForwardOnlyDataSet(super.createDataSet()); 38 } 39 40 protected IDataSet createDuplicateDataSet() throws Exception 41 { 42 return new ForwardOnlyDataSet(super.createDuplicateDataSet()); 43 } 44 45 public void testGetTableNames() throws Exception 46 { 47 try 48 { 49 createDataSet().getTableNames(); 50 fail("Should have throw UnsupportedOperationException"); 51 } 52 catch (UnsupportedOperationException e) 53 { 54 55 } 56 } 57 58 public void testGetTable() throws Exception 59 { 60 String [] tableNames = getExpectedNames(); 61 try 62 { 63 createDataSet().getTable(tableNames[0]); 64 fail("Should have throw UnsupportedOperationException"); 65 } 66 catch (UnsupportedOperationException e) 67 { 68 69 } 70 } 71 72 public void testGetTableMetaData() throws Exception 73 { 74 String [] tableNames = getExpectedNames(); 75 try 76 { 77 createDataSet().getTableMetaData(tableNames[0]); 78 fail("Should have throw UnsupportedOperationException"); 79 } 80 catch (UnsupportedOperationException e) 81 { 82 83 } 84 } 85 86 public void testReverseIterator() throws Exception 87 { 88 try 89 { 90 createDataSet().reverseIterator(); 91 fail("Should have throw UnsupportedOperationException"); 92 } 93 catch (UnsupportedOperationException e) 94 { 95 96 } 97 } 98 99 public void testGetTableNamesDefensiveCopy() throws Exception 100 { 101 } 103 104 public void testGetUnknownTable() throws Exception 105 { 106 } 108 109 public void testGetUnknownTableMetaData() throws Exception 110 { 111 } 113 114 public void testGetTablesDefensiveCopy() throws Exception 115 { 116 } 118 119 public void testGetDuplicateTables() throws Exception 120 { 121 } 123 124 public void testGetDuplicateTableNames() throws Exception 125 { 126 } 128 129 public void testGetDuplicateTable() throws Exception 130 { 131 } 133 134 public void testGetDuplicateTableMetaData() throws Exception 135 { 136 } 138 139 public void testGetCaseInsensitiveTable() throws Exception 140 { 141 } 143 144 public void testGetCaseInsensitiveTableMetaData() throws Exception 145 { 146 } 148 149 public void testGetCaseInsensitiveDuplicateTable() throws Exception 150 { 151 } 153 154 public void testGetCaseInsensitiveDuplicateTableMetaData() throws Exception 155 { 156 } 158 159 public void testReverseIteratorAndDuplicateTable() throws Exception 160 { 161 } 163 } 164 | Popular Tags |