Update of /var/cvs/tests/common/org/mmbase/tests
In directory james.mmbase.org:/tmp/cvs-serv30866/common/org/mmbase/tests

Modified Files:
        BridgeTest.java 
Log Message:
should make the datatype testcases succeed in transaction too


See also: http://cvs.mmbase.org/viewcvs/tests/common/org/mmbase/tests


Index: BridgeTest.java
===================================================================
RCS file: /var/cvs/tests/common/org/mmbase/tests/BridgeTest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- BridgeTest.java     12 Aug 2008 16:08:47 -0000      1.15
+++ BridgeTest.java     13 Aug 2008 09:05:20 -0000      1.16
@@ -68,6 +68,18 @@
         return c;
     }
 
+    /**
+     * can be used to override getCloud
+     */
+    protected Cloud getTransaction() {
+        Cloud cloud = getCloudContext().getCloud("mmbase", "class", null);
+        ensureDeployed(cloud, "local cloud");
+        Cloud transaction = cloud.createTransaction(getClass().getName());
+        CloudThreadLocal.unbind();
+        CloudThreadLocal.bind(transaction);
+        return transaction;
+    }
+
     protected Cloud getRemoteCloud() {
         return getRemoteCloud("rmi://127.0.0.1:1221/remotecontext");
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to