1 /* 2 * Created on 2003-6-10 15:04:38 by joel guo 3 * 4 * vTradEx Information Technology Inc. 5 */ 6 package com.cyclops.dbdigger.sql; 7 import com.cyclops.dbdigger.DBDigger; 8 import com.cyclops.dbdigger.DBDiggerTestCase; 9 import com.cyclops.dbdigger.schema.Column; 10 import com.cyclops.dbdigger.schema.Database; 11 /*** Add description <font color="red">HERE</font>! 12 * 13 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a> 14 * @since 2003-6-10 15:04:38 15 */ 16 public class AndTest extends DBDiggerTestCase { 17 /*** Method testExpression() 18 */ 19 public void testExpression() { 20 Database db = DBDigger.getSchema().getDefaultDatabase(); 21 Column c = db.getTable("c_foo_object1s").getColumn("object_name"); 22 And and = new And(); 23 and.and(new Equal(c, new Integer(100))); 24 and.and(new Equal(c, new Integer(101))); 25 //Actually it won't happen at all 26 assertEquals("AND", and.getCombinator()); 27 assertEquals(2, and.getCriteria().length); 28 } 29 }

This page was automatically generated by Maven