KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dbunit > dataset > ForwardOnlyDataSetTest


1 /*
2  *
3  * The DbUnit Database Testing Framework
4  * Copyright (C)2002-2004, DbUnit.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */

21 package org.dbunit.dataset;
22
23 /**
24  * @author Manuel Laflamme
25  * @since Apr 11, 2003
26  * @version $Revision: 1.2 $
27  */

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