brj 2005/04/01 12:44:19
Modified: src/test/org/apache/ojb/broker TypedCollectionsTest.java
Log:
use QueryFactory
Revision Changes Path
1.13 +3 -2
db-ojb/src/test/org/apache/ojb/broker/TypedCollectionsTest.java
Index: TypedCollectionsTest.java
===================================================================
RCS file:
/home/cvs/db-ojb/src/test/org/apache/ojb/broker/TypedCollectionsTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- TypedCollectionsTest.java 18 Dec 2004 14:01:17 -0000 1.12
+++ TypedCollectionsTest.java 1 Apr 2005 20:44:19 -0000 1.13
@@ -1,6 +1,7 @@
package org.apache.ojb.broker;
import org.apache.ojb.broker.query.QueryByIdentity;
+import org.apache.ojb.broker.query.QueryFactory;
import org.apache.ojb.junit.PBTestCase;
/** This TestClass tests OJB facilities to work with typed collections.
@@ -28,7 +29,7 @@
ProductGroupWithArray example = new ProductGroupWithArray();
example.setId(i);
ProductGroupWithArray group =
- (ProductGroupWithArray) broker.getObjectByQuery(new
QueryByIdentity(example));
+ (ProductGroupWithArray)
broker.getObjectByQuery(QueryFactory.newQueryByIdentity(example));
assertEquals("should be equal", i, group.getId());
//System.out.println(group + "\n\n");
@@ -48,7 +49,7 @@
example.setId(i);
ProductGroupWithTypedCollection group =
(ProductGroupWithTypedCollection) broker.getObjectByQuery(
- new QueryByIdentity(example));
+ QueryFactory.newQueryByIdentity(example));
assertEquals("should be equal", i, group.getId());
//System.out.println(group + "\n\n");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]