1   package org.apache.torque.engine.database.model;
2   
3   import junit.framework.TestCase;
4   
5   /***
6    * @author martin
7    */
8   public class ColumnTest extends TestCase {
9   
10      public void testRequiresTransactionInPostgres() {
11          Column col = new Column();
12          col.setType("VARBINARY");
13          assertTrue(col.requiresTransactionInPostgres());
14          col = new Column();
15          col.setType("INTEGER");
16          assertFalse(col.requiresTransactionInPostgres());
17          col = new Column();
18          col.setType("BLOB");
19          assertTrue(col.requiresTransactionInPostgres());
20      }
21  
22  }