1 /*
2 * Created on 2003-6-4 16:34:11 by joel guo
3 *
4 * vTradEx Information Technology Inc.
5 */
6 package com.cyclops.dbdigger.schema.torque;
7 import com.cyclops.dbdigger.DBDigger;
8 import com.cyclops.dbdigger.DBDiggerTestCase;
9 import com.cyclops.dbdigger.schema.Database;
10 import com.cyclops.dbdigger.schema.Schema;
11 import com.cyclops.dbdigger.schema.Table;
12 /*** Add description <font color="red">HERE</font>!
13 *
14 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a>
15 * @since 2003-6-4 16:34:11
16 */
17 public class TorqueSchemaTest extends DBDiggerTestCase {
18 /*** Method testInitialize()
19 * @throws Exception Any exception will fail this testing
20 */
21 public void testInitialize() throws Exception {
22 Schema schema = DBDigger.getSchema();
23 assertEquals(1, schema.getDatabases().length);
24 Database db = schema.getDefaultDatabase();
25 Table t1 = db.getTable("c_foo_object1s");
26 assertNotNull(t1);
27 assertEquals(8, t1.getColumns().length);
28 }
29 }
This page was automatically generated by Maven