1 /**
2 *
3 */
4 package org.melati.poem.test.throwing;
5
6 import java.sql.DatabaseMetaData;
7
8 import org.melati.poem.Database;
9 import org.melati.poem.PoemDatabaseFactory;
10 import org.melati.poem.SQLSeriousPoemException;
11 import org.melati.poem.dbms.test.sql.Thrower;
12
13 /**
14 * @author timp
15 * @since 11 Jun 2007
16 *
17 */
18 public class DynamicTableTest extends org.melati.poem.test.DynamicTableTest {
19
20 public DynamicTableTest(String arg0) {
21 super(arg0);
22 }
23
24 protected void setUp() throws Exception {
25 PoemDatabaseFactory.removeDatabase(getDatabaseName());
26 super.setUp();
27 assertEquals("org.melati.poem.dbms.test.HsqldbThrower",getDb().getDbms().getClass().getName());
28 }
29
30 protected void tearDown() throws Exception {
31 super.tearDown();
32 }
33
34 public Database getDatabase(String name) {
35
36 maxTrans = 8;
37 Database db = PoemDatabaseFactory.getDatabase(name,
38 "jdbc:hsqldb:mem:" + name,
39 "sa",
40 "",
41 "org.melati.poem.test.EverythingDatabase",
42 "org.melati.poem.dbms.test.HsqldbThrower",
43 false,
44 false,
45 false, maxTrans);
46 return db;
47 }
48 /**
49 * {@inheritDoc}
50 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitBigDecimal()
51 */
52 public void testAddColumnAndCommitBigDecimal() {
53 //super.testAddColumnAndCommitBigDecimal();
54 }
55
56 /**
57 * {@inheritDoc}
58 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitBinary()
59 */
60 public void testAddColumnAndCommitBinary() {
61 //super.testAddColumnAndCommitBinary();
62 }
63
64 /**
65 * {@inheritDoc}
66 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitBoolean()
67 */
68 public void testAddColumnAndCommitBoolean() {
69 //super.testAddColumnAndCommitBoolean();
70 }
71
72 /**
73 * {@inheritDoc}
74 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitDate()
75 */
76 public void testAddColumnAndCommitDate() {
77 //super.testAddColumnAndCommitDate();
78 }
79
80 /**
81 * {@inheritDoc}
82 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitDeleted()
83 */
84 public void testAddColumnAndCommitDeleted() throws Exception {
85 //super.testAddColumnAndCommitDeleted();
86 }
87
88 /**
89 * {@inheritDoc}
90 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitDisplaylevel()
91 */
92 public void testAddColumnAndCommitDisplaylevel() {
93 //super.testAddColumnAndCommitDisplaylevel();
94 }
95
96 /**
97 * {@inheritDoc}
98 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitDouble()
99 */
100 public void testAddColumnAndCommitDouble() {
101 //super.testAddColumnAndCommitDouble();
102 }
103
104 /**
105 * {@inheritDoc}
106 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitInteger()
107 */
108 public void testAddColumnAndCommitInteger() {
109 //super.testAddColumnAndCommitInteger();
110 }
111
112 /**
113 * {@inheritDoc}
114 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitIntegrityfix()
115 */
116 public void testAddColumnAndCommitIntegrityfix() {
117 //super.testAddColumnAndCommitIntegrityfix();
118 }
119
120 /**
121 * {@inheritDoc}
122 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitLong()
123 */
124 public void testAddColumnAndCommitLong() {
125 //super.testAddColumnAndCommitLong();
126 }
127
128 /**
129 * {@inheritDoc}
130 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitNullableInteger()
131 */
132 public void testAddColumnAndCommitNullableInteger() {
133 //super.testAddColumnAndCommitNullableInteger();
134 }
135
136 /**
137 * {@inheritDoc}
138 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitPassword()
139 */
140 public void testAddColumnAndCommitPassword() {
141 //super.testAddColumnAndCommitPassword();
142 }
143
144 /**
145 * {@inheritDoc}
146 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitSearchability()
147 */
148 public void testAddColumnAndCommitSearchability() {
149 //super.testAddColumnAndCommitSearchability();
150 }
151
152 /**
153 * {@inheritDoc}
154 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitString()
155 */
156 public void testAddColumnAndCommitString() {
157 //super.testAddColumnAndCommitString();
158 }
159
160 /**
161 * {@inheritDoc}
162 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitTimestamp()
163 */
164 public void testAddColumnAndCommitTimestamp() {
165 //super.testAddColumnAndCommitTimestamp();
166 }
167
168 /**
169 * {@inheritDoc}
170 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitTroid()
171 */
172 public void testAddColumnAndCommitTroid() {
173 //super.testAddColumnAndCommitTroid();
174 }
175
176 /**
177 * {@inheritDoc}
178 * @see org.melati.poem.test.DynamicTableTest#testAddColumnAndCommitType()
179 */
180 public void testAddColumnAndCommitType() {
181 //super.testAddColumnAndCommitType();
182 }
183
184 /**
185 * {@inheritDoc}
186 * @see org.melati.poem.test.DynamicTableTest#testAddTableAndCommit()
187 */
188 public void testAddTableAndCommit() throws Exception {
189 Thrower.startThrowing(DatabaseMetaData.class, "getIndexInfo");
190 try {
191 super.testAddTableAndCommit();
192 } catch (SQLSeriousPoemException e) {
193 assertEquals("DatabaseMetaData bombed", e.innermostException().getMessage());
194 Thrower.stopThrowing(DatabaseMetaData.class, "getIndexInfo");
195 }
196 }
197
198 /**
199 * {@inheritDoc}
200 * @see org.melati.poem.test.DynamicTableTest#testExtraColumnAsField()
201 */
202 public void testExtraColumnAsField() {
203 //super.testExtraColumnAsField();
204 }
205
206 }