You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ol...@apache.org on 2003/11/10 13:57:21 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/broker/sqlcount EmptyCacheCountTest.java
oliverm 2003/11/10 04:57:21
Modified: src/test/org/apache/ojb/broker/sqlcount
EmptyCacheCountTest.java
Log:
use less precise number for sql count test
(order of tables is undetermined)
Revision Changes Path
1.2 +2 -2 db-ojb/src/test/org/apache/ojb/broker/sqlcount/EmptyCacheCountTest.java
Index: EmptyCacheCountTest.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/sqlcount/EmptyCacheCountTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EmptyCacheCountTest.java 27 Oct 2003 15:49:44 -0000 1.1
+++ EmptyCacheCountTest.java 10 Nov 2003 12:57:21 -0000 1.2
@@ -69,7 +69,7 @@
assertNull(id.getObjectsRealClass());
myPB.getObjectByIdentity(id);
assertEquals(CdArticle.class, id.getObjectsRealClass());
- assertStmtCount("access one cd", 3); // 3 tables: Artikel, BOOKS, CDS
+ assertStmtCount("access one cd", 1, 3); // 3 tables: Artikel, BOOKS, CDS
resetStmtCount();
myPB.getObjectByIdentity(id);
assertStmtCount("access one cd again", 1); // lookup again, but exploit objectsRealClass
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org