1 /* 2 * Created on 2003-6-27 10:53:55 by joel guo 3 * 4 * vTradEx Information Technology Inc. 5 */ 6 package com.cyclops.dbdigger.model; 7 import com.cyclops.dbdigger.DBDiggerTestCase; 8 /*** Add description <font color="red">HERE</font>! 9 * 10 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a> 11 * @since 2003-6-27 10:53:55 12 */ 13 public class DBObject1Test extends DBDiggerTestCase { 14 /*** Test getter and setter methods 15 */ 16 public void testProperties() { 17 DBObject1 obj = new DBObject1(); 18 assertFalse(obj.isChanged()); 19 obj.setId(1); 20 obj.setObjectName("aaa"); 21 obj.setSequence(1); 22 obj.setTitle("ddd"); 23 assertEquals(1, obj.getId()); 24 assertEquals("aaa", obj.getObjectName()); 25 assertEquals(1, obj.getSequence()); 26 assertEquals("ddd", obj.getTitle()); 27 assertTrue(obj.isNew()); 28 assertTrue(obj.isChanged()); 29 } 30 }

This page was automatically generated by Maven