jackrabbit-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1146788&view=rev
Log:
spi2microkernel (WIP)
- test

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=1146788&r1=1146787&r2=1146788&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 Jul 14 16:44:01 2011
@@ -1120,6 +1120,11 @@ public class RepositoryTest {
             assertEquals(value.getType(), value2.getType());
             assertEqualStream(value.getStream(), value2.getStream());
             assertEquals(value.getString(), value2.getString());
+
+            if (value2.getType() == PropertyType.REFERENCE || value2.getType() == PropertyType.WEAKREFERENCE)
{
+                String ref = value2.getString();
+                assertNotNull(getSession().getNodeByIdentifier(ref));
+            }
         }
         finally {
             session2.logout();



Mime
View raw message