View Javadoc
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   * @author timp
12   * @since 26 Feb 2007
13   *
14   */
15  public class ColumnTest extends org.melati.poem.test.ColumnTest {
16  
17    /**
18     * Constructor.
19     * @param name
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      //super.testAsEmptyField();
55    }
56  
57    public void testCachedSelectionWhereEq() {
58      //super.testCachedSelectionWhereEq();
59    }
60  
61    public void testColumn() {
62      //super.testColumn();
63    }
64  
65    public void testDump() {
66      //super.testDump();
67    }
68  
69    public void testEnsure() {
70      //super.testEnsure();
71    }
72  
73    public void testEqClause() {
74      //super.testEqClause();
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      //super.testFirstWhereEq();
91    }
92  
93    public void testFullQuotedName() {
94      //super.testFullQuotedName();
95    }
96  
97    public void testGetColumnInfo() {
98      //super.testGetColumnInfo();
99    }
100 
101   public void testGetCooked() {
102     //super.testGetCooked();
103   }
104 
105   public void testGetDatabase() {
106     //super.testGetDatabase();
107   }
108 
109   public void testGetDescription() {
110     //super.testGetDescription();
111   }
112 
113   public void testGetDisplayLevel() {
114     //super.testGetDisplayLevel();
115   }
116 
117   public void testGetDisplayName() {
118     //super.testGetDisplayName();
119   }
120 
121   public void testGetDisplayOrderPriority() {
122     //super.testGetDisplayOrderPriority();
123   }
124 
125   public void testGetHeight() {
126     //super.testGetHeight();
127   }
128 
129   public void testGetIndexed() {
130     //super.testGetIndexed();
131   }
132 
133   public void testGetIntegrityFix() {
134     //super.testGetIntegrityFix();
135   }
136 
137   public void testGetName() {
138     //super.testGetName();
139   }
140 
141   public void testGetRaw_unsafe() {
142     //super.testGetRaw_unsafe();
143   }
144 
145   public void testGetRaw() {
146     //super.testGetRaw();
147   }
148 
149   public void testGetRenderInfo() {
150     //super.testGetRenderInfo();
151   }
152 
153   public void testGetSearchability() {
154     //super.testGetSearchability();
155   }
156 
157   public void testGetSortDescending() {
158     //super.testGetSortDescending();
159   }
160 
161   public void testGetSQLType() {
162     //super.testGetSQLType();
163   }
164 
165   public void testGetTable() {
166     //super.testGetTable();
167   }
168 
169   public void testGetType() {
170     //super.testGetType();
171   }
172 
173   public void testGetUnique() {
174     //super.testGetUnique();
175   }
176 
177   public void testGetUserCreateable() {
178     //super.testGetUserCreateable();
179   }
180 
181   public void testGetUserEditable() {
182     //super.testGetUserEditable();
183   }
184 
185   public void testGetWidth() {
186     //super.testGetWidth();
187   }
188 
189   public void testIsDeletedColumn() {
190     //super.testIsDeletedColumn();
191   }
192 
193   public void testIsTroidColumn() {
194     //super.testIsTroidColumn();
195   }
196 
197   public void testLoad_unsafe() {
198 /*
199     ThrowingPreparedStatement.startThrowing("setInt");
200     try { 
201       super.testLoad_unsafe();
202       fail("Should have bombed");
203     } catch (FieldContentsPoemException e) { 
204       assertEquals("PreparedStatement bombed", e.innermostException().getMessage());
205     } finally { 
206       ThrowingPreparedStatement.stopThrowing("setInt");
207     }
208  */
209   }
210 
211   public void testQuotedName() {
212     //super.testQuotedName();
213   }
214 
215   public void testReferencesTo() {
216     //super.testReferencesTo();
217   }
218 
219   public void testSave_unsafe() {
220     //super.testSave_unsafe();
221   }
222 
223   public void testSelectionWhereEq() {
224     //super.testSelectionWhereEq();
225   }
226 
227   public void testSetCooked() {
228     //super.testSetCooked();
229   }
230 
231   public void testSetDisplayLevel() {
232     //super.testSetDisplayLevel();
233   }
234 
235   public void testSetIntegrityFix() {
236     //super.testSetIntegrityFix();
237   }
238 
239   public void testSetRaw_unsafe() {
240     //super.testSetRaw_unsafe();
241   }
242 
243   public void testSetRaw() {
244     //super.testSetRaw();
245   }
246 
247   public void testSetRawString() {
248     //super.testSetRawString();
249   }
250 
251   public void testSetSearchability() {
252     //super.testSetSearchability();
253   }
254 
255   public void testToString() {
256     //super.testToString();
257   }
258   
259 
260 }