List:Commits« Previous MessageNext Message »
From:Craig L Russell Date:September 2 2010 9:08pm
Subject:bzr commit into clusterj branch (Craig.Russell:313)
View as plain text  
#At file:///Users/clr/ndb/root/clusterj-working/ based on revid:craig.russell@stripped

  313 Craig L Russell	2010-09-02
      Improve construction of new instances in test

    modified:
      clusterj-test/src/main/java/testsuite/clusterj/AbstractClusterJModelTest.java
=== modified file 'clusterj-test/src/main/java/testsuite/clusterj/AbstractClusterJModelTest.java'
--- a/clusterj-test/src/main/java/testsuite/clusterj/AbstractClusterJModelTest.java	2010-07-24 05:37:58 +0000
+++ b/clusterj-test/src/main/java/testsuite/clusterj/AbstractClusterJModelTest.java	2010-09-02 21:08:18 +0000
@@ -695,12 +695,17 @@ public abstract class AbstractClusterJMo
 
     protected void createAllPrimitivesInstances(Session session, int number) {
         for (int i = 0; i < number; ++i) {
-            AllPrimitives instance = session.newInstance(AllPrimitives.class);
-            initialize(instance, i);
+            AllPrimitives instance = createAllPrimitiveInstance(session, i);
             instances.add(instance);
         }
     }
 
+    protected AllPrimitives createAllPrimitiveInstance(Session session, int i) {
+        AllPrimitives instance = session.newInstance(AllPrimitives.class);
+        initialize(instance, i);
+        return instance;
+    }
+
     protected void initialize(AllPrimitives instance, int i) {
         instance.setId(i);
         instance.setInt_not_null_hash(i);


Attachment: [text/bzr-bundle] bzr/craig.russell@oracle.com-20100902210818-3fid7zyiu1ica8gi.bundle
Thread
bzr commit into clusterj branch (Craig.Russell:313)Craig L Russell2 Sep