public static void main(String[] args) throws IOException, ParseException { SQLToAppData sqlToAppData = new SQLToAppData( "D:\\project\\torque\\src\\generator\\src\\test\\org\\apache\\torque\\engine\\database\\transform\\mysql.sql"); Database db = sqlToAppData.execute(); // assertTrue(db.getTables().size() > 0); Table course = db.getTable("ab"); System.out.println(course); // assertTrue(course != null); }
/** Class to test for void SQLToAppData(String, String) */ public void testMySql() throws Exception { // SQLToAppData sqlToAppData = new SQLToAppData( // "src/test/org/apache/torque/engine/database/transform/mysql.sql", // "mysql"); SQLToAppData sqlToAppData = new SQLToAppData("src/com/frameworkset/orm/engine/transform/mysql.sql"); Database db = sqlToAppData.execute(); assertTrue(db.getTables().size() > 0); Table course = db.getTable("course"); System.out.println(course); assertTrue(course != null); }