AW: [OJB-developers] JUNIT failures & errors
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-06-03 07:40:37
|
Hi, I added this to my todo list! cheers,=20 Thomas > -----Urspr=FCngliche Nachricht----- > Von: Thomas Mahler [mailto:tho...@ho...] > Gesendet: Sonntag, 2. Juni 2002 16:22 > An: ojb > Betreff: [OJB-developers] JUNIT failures & errors >=20 >=20 > Hi all, >=20 > I just checked in some minor fixes that cure most of the problems I=20 > mentioned in my last mail. >=20 > I set some log-messages in JdbcAccess from .error(...) to = .debug(...). > This avoids all the internal stacktrace within the PB Junit tests. > This does not compromise stability as throwing of exceptions=20 > is not touched. >=20 > I found a minor issue in SqlUpdateStatement: > in appendSetClause(...) it uses appendColname from the baseclass=20 > SqlStatement. >=20 > This method is used to generate column names from field descriptors. > It uses FieldDescriptor.getFullColumnName() to build a column name. > This will include Schema and table name in a column name=20 > (i.e. a column=20 > "NAME" would be fullqualified as "MySchema.MyTable.NAME"). >=20 > This may work in most situations, but it does not work for Update=20 > statements in Hsqldb (AFAIK DB2 and InstantDB also don't=20 > support this). >=20 > I refactored this code with the "template method" pattern,=20 > that allows=20 > subclasses to override the qualification behaviour. >=20 > Could this fix be problematic for other databases? Or could=20 > there be any=20 > cases where full-qualified names are needed within Update Statements? >=20 > Now we have the following JUnit results: > PersistenceBroker: 0 Failures, 0 Errors, 0 Stacktraces > SODA: 0 Failures, 0 Errors, 0 Stacktraces > ODMG: 0 Failures, 1 Error (resulting in some stacktracing) >=20 > The error is in test.ojb.odmg.OneToOneTest.testSave(). >=20 > I hope to get this fixed soon. >=20 > cheers, >=20 > Thomas >=20 >=20 > _______________________________________________________________ >=20 > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- = http://devcon.sprintpcs.com/adp/index.cfm >=20 > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers >=20 |