Update of /var/cvs/tests/bridge/org/mmbase/bridge
In directory james.mmbase.org:/tmp/cvs-serv12969

Modified Files:
        TransactionTest.java 
Log Message:
also test the other way around


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


Index: TransactionTest.java
===================================================================
RCS file: /var/cvs/tests/bridge/org/mmbase/bridge/TransactionTest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- TransactionTest.java        19 Nov 2008 11:00:36 -0000      1.15
+++ TransactionTest.java        19 Nov 2008 11:03:41 -0000      1.16
@@ -19,7 +19,7 @@
  * Test class <code>Transaction</code> from the bridge package.
  *
  * @author Michiel Meeuwissen
- * @version $Id: TransactionTest.java,v 1.15 2008/11/19 11:00:36 michiel Exp $
+ * @version $Id: TransactionTest.java,v 1.16 2008/11/19 11:03:41 michiel Exp $
  * @since MMBase-1.8.6
   */
 public class TransactionTest extends BridgeTest {
@@ -339,7 +339,6 @@
     }
 
     public void testCreateRelationBetweenNewNodes() {
-        System.out.println("Bla");
         Cloud cloud = getCloud();
         Transaction t = cloud.getTransaction("createrelationtrans");
         NodeManager news = t.getNodeManager("news");
@@ -351,6 +350,7 @@
         t.commit();
     }
 
+    // new node as argument
     public void testCreateRelationToNewNode() {
         Cloud cloud = getCloud();
         Transaction t = cloud.getTransaction("createrelationtrans");
@@ -362,6 +362,18 @@
         t.commit();
     }
 
+    // old node as argument
+    public void testCreateRelationToNewNode2() {
+        Cloud cloud = getCloud();
+        Transaction t = cloud.getTransaction("createrelationtrans");
+        Node n = t.getNode(newNode);
+        NodeManager urls = t.getNodeManager("urls");
+        Node url = urls.createNode();
+        RelationManager rm = t.getRelationManager("urls", "news", "posrel");
+        Relation r = url.createRelation(n, rm);
+        t.commit();
+    }
+
 
 
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to