[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
DBObjectTest.java Test2.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Thu Sep 23 22:46:40 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
In directory jcorp2.servlets.net:/tmp/cvs-serv7544/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
Modified Files:
DBObjectTest.java Test2.java
Log Message:
NOTE To Mike Traum:
The unit test added is failing in Expresso last release. Default values are not getting set. Haven't tracked down source of that, but this is a good demonstration.
Index: DBObjectTest.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests/DBObjectTest.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** DBObjectTest.java 1 Sep 2004 03:31:49 -0000 1.38
--- DBObjectTest.java 24 Sep 2004 05:46:38 -0000 1.39
***************
*** 1186,1189 ****
--- 1186,1194 ----
}
+ public void testDefaultValues() throws DBException {
+ Test2 test2 = new Test2();
+ assertEquals("This is a test", test2.getField("Descrip"));
+ }
+
/**
Index: Test2.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests/Test2.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Test2.java 3 Jun 2003 06:12:14 -0000 1.6
--- Test2.java 24 Sep 2004 05:46:38 -0000 1.7
***************
*** 118,121 ****
--- 118,122 ----
addField("TestKey", "int", 0, false, "Test Table Key");
addField("Descrip", "varchar", 30, true, "Description");
+ this.setDefaultValue("Descrip","This is a test");
addKey("TestKey");
} /* setupFields() */
More information about the cvs
mailing list