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 mk...@apache.org on 2005/03/15 03:29:32 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/broker BlobTest.java
mkalen 2005/03/14 18:29:32
Modified: src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
BlobTest.java
Log:
Avoid NPE on read failures.
Revision Changes Path
No revision
No revision
1.9.2.5 +3 -2 db-ojb/src/test/org/apache/ojb/broker/BlobTest.java
Index: BlobTest.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/BlobTest.java,v
retrieving revision 1.9.2.4
retrieving revision 1.9.2.5
diff -u -r1.9.2.4 -r1.9.2.5
--- BlobTest.java 4 Mar 2005 23:33:47 -0000 1.9.2.4
+++ BlobTest.java 15 Mar 2005 02:29:32 -0000 1.9.2.5
@@ -102,7 +102,8 @@
Identity oid = new Identity(obj, broker);
ObjectWithBlob obj1 = (ObjectWithBlob) broker.getObjectByIdentity(oid);
-
+ assertNotNull("BLOB was not stored", obj1.getBlob());
+ assertNotNull("CLOB was not stored", obj1.getClob());
assertEquals(obj.getBlob().length, obj1.getBlob().length);
assertEquals(obj.getClob().length(), obj1.getClob().length());
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org