jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1136392 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Thu, 16 Jun 2011 12:14:06 GMT
Author: mduerig
Date: Thu Jun 16 12:14:06 2011
New Revision: 1136392

URL: http://svn.apache.org/viewvc?rev=1136392&view=rev
Log:
spi2microkernel prototype (WIP)
write: set mixin

Modified:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1136392&r1=1136391&r2=1136392&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Thu Jun 16 12:14:06 2011
@@ -786,15 +786,27 @@ public class RepositoryTest {
         testNode.addMixin("mix:test");
         testNode.getSession().save();
 
-        mix = testNode.getMixinNodeTypes();
-        assertEquals(1, mix.length);
-        assertEquals("mix:test", mix[0].getName());
+        Session session2 = getRepository().login();
+        try {
+            mix = session2.getNode(testPath).getMixinNodeTypes();
+            assertEquals(1, mix.length);
+            assertEquals("mix:test", mix[0].getName());
+        }
+        finally {
+            session2.logout();
+        }
 
         testNode.removeMixin("mix:test");
         testNode.getSession().save();
 
-        mix = testNode.getMixinNodeTypes();
-        assertEquals(0, mix.length);
+        session2 = getRepository().login();
+        try {
+            mix = session2.getNode(testPath).getMixinNodeTypes();
+            assertEquals(0, mix.length);
+        }
+        finally {
+            session2.logout();
+        }
     }
 
     //------------------------------------------< private >---



Mime
View raw message