db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject Re: cvs commit: db-torque/src/generator/src/test/org/apache/torque/engine/database/transform mysql.sql SQLToAppDataTest.java
Date Wed, 03 Dec 2003 23:42:19 GMT
Woo, more tests!

mpoeschl@apache.org wrote:
...
>   public class SQLToAppDataTest extends TestCase
>   {
>       
>       /**
>        * 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");
>           Database db = sqlToAppData.execute();
>           assertTrue(db.getTables().size() > 0);
>           Table course = db.getTable("course");
>           assertTrue(course != null);

The above two lines could be written as:

assertNotNull(db.getTable("course"));

>       }
>   
>   }


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message