[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
DBObjectTest.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Tue Jun 8 09:26:23 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-serv16411/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
Modified Files:
DBObjectTest.java
Log Message:
add test for supporting transactions
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.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** DBObjectTest.java 8 Jun 2004 06:15:46 -0000 1.34
--- DBObjectTest.java 8 Jun 2004 16:26:20 -0000 1.35
***************
*** 1102,1106 ****
// assertTrue("Clob is empty" , getter.getField("ClobTest").length() > 0);
! assertEquals(getter.getField("ClobTest").length(), teststr.length());
}
--- 1102,1106 ----
// assertTrue("Clob is empty" , getter.getField("ClobTest").length() > 0);
! assertEquals(teststr.length(), getter.getField("ClobTest").length());
}
***************
*** 1124,1127 ****
--- 1124,1131 ----
DBConnectionPool.getInstance(TestSystemInitializer.getTestContext());
myConnection = myPool.getConnection();
+ if (!myConnection.supportsTransactions()) {
+ log.warn("Cannot test transactions because this DB does not support them.");
+ return;
+ }
myConnection.setAutoCommit(false);
log.info("Add a resource");
More information about the cvs
mailing list