1 package org.melati.poem.test.throwing;
2
3 import java.sql.ResultSet;
4
5 import org.melati.poem.Database;
6 import org.melati.poem.PoemDatabaseFactory;
7 import org.melati.poem.SQLSeriousPoemException;
8 import org.melati.poem.dbms.test.sql.Thrower;
9
10
11
12
13
14
15 public class ColumnTest extends org.melati.poem.test.ColumnTest {
16
17
18
19
20
21 public ColumnTest(String name) {
22 super(name);
23 }
24
25 protected void setUp() throws Exception {
26 PoemDatabaseFactory.removeDatabase(getDatabaseName());
27 super.setUp();
28 assertEquals("org.melati.poem.dbms.test.HsqldbThrower",getDb().getDbms().getClass().getName());
29 }
30 protected void tearDown() throws Exception {
31 try {
32 super.tearDown();
33 } finally {
34 PoemDatabaseFactory.removeDatabase(getDatabaseName());
35 }
36 }
37
38
39 public Database getDatabase(String name) {
40 maxTrans = 8;
41 Database db = PoemDatabaseFactory.getDatabase(name,
42 "jdbc:hsqldb:mem:" + name,
43 "sa",
44 "",
45 "org.melati.poem.PoemDatabase",
46 "org.melati.poem.dbms.test.HsqldbThrower",
47 false,
48 false,
49 false, maxTrans);
50 return db;
51 }
52
53 public void testAsEmptyField() {
54
55 }
56
57 public void testCachedSelectionWhereEq() {
58
59 }
60
61 public void testColumn() {
62
63 }
64
65 public void testDump() {
66
67 }
68
69 public void testEnsure() {
70
71 }
72
73 public void testEqClause() {
74
75 }
76
77 public void testFirstFree() {
78 Thrower.startThrowing(ResultSet.class, "next");
79 try {
80 super.testFirstFree();
81 fail("Should have blown up");
82 } catch (SQLSeriousPoemException e) {
83 assertEquals("ResultSet bombed", e.innermostException().getMessage());
84 } finally {
85 Thrower.stopThrowing(ResultSet.class, "next");
86 }
87 }
88
89 public void testFirstWhereEq() {
90
91 }
92
93 public void testFullQuotedName() {
94
95 }
96
97 public void testGetColumnInfo() {
98
99 }
100
101 public void testGetCooked() {
102
103 }
104
105 public void testGetDatabase() {
106
107 }
108
109 public void testGetDescription() {
110
111 }
112
113 public void testGetDisplayLevel() {
114
115 }
116
117 public void testGetDisplayName() {
118
119 }
120
121 public void testGetDisplayOrderPriority() {
122
123 }
124
125 public void testGetHeight() {
126
127 }
128
129 public void testGetIndexed() {
130
131 }
132
133 public void testGetIntegrityFix() {
134
135 }
136
137 public void testGetName() {
138
139 }
140
141 public void testGetRaw_unsafe() {
142
143 }
144
145 public void testGetRaw() {
146
147 }
148
149 public void testGetRenderInfo() {
150
151 }
152
153 public void testGetSearchability() {
154
155 }
156
157 public void testGetSortDescending() {
158
159 }
160
161 public void testGetSQLType() {
162
163 }
164
165 public void testGetTable() {
166
167 }
168
169 public void testGetType() {
170
171 }
172
173 public void testGetUnique() {
174
175 }
176
177 public void testGetUserCreateable() {
178
179 }
180
181 public void testGetUserEditable() {
182
183 }
184
185 public void testGetWidth() {
186
187 }
188
189 public void testIsDeletedColumn() {
190
191 }
192
193 public void testIsTroidColumn() {
194
195 }
196
197 public void testLoad_unsafe() {
198
199
200
201
202
203
204
205
206
207
208
209 }
210
211 public void testQuotedName() {
212
213 }
214
215 public void testReferencesTo() {
216
217 }
218
219 public void testSave_unsafe() {
220
221 }
222
223 public void testSelectionWhereEq() {
224
225 }
226
227 public void testSetCooked() {
228
229 }
230
231 public void testSetDisplayLevel() {
232
233 }
234
235 public void testSetIntegrityFix() {
236
237 }
238
239 public void testSetRaw_unsafe() {
240
241 }
242
243 public void testSetRaw() {
244
245 }
246
247 public void testSetRawString() {
248
249 }
250
251 public void testSetSearchability() {
252
253 }
254
255 public void testToString() {
256
257 }
258
259
260 }