1 package org.apache.torque.engine.database.transform; 2 3 18 19 import junit.framework.TestCase; 20 21 import org.apache.torque.engine.database.model.Database; 22 import org.apache.torque.engine.database.model.Table; 23 24 28 public class SQLToAppDataTest extends TestCase 29 { 30 31 34 public void testMySql() throws Exception 35 { 36 SQLToAppData sqlToAppData = new SQLToAppData( 37 "src/test/org/apache/torque/engine/database/transform/mysql.sql", 38 "mysql"); 39 Database db = sqlToAppData.execute(); 40 assertTrue(db.getTables().size() > 0); 41 Table course = db.getTable("course"); 42 assertTrue(course != null); 43 } 44 45 } 46 | Popular Tags |