jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1570150 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java
Date Thu, 20 Feb 2014 11:30:49 GMT
Author: mduerig
Date: Thu Feb 20 11:30:49 2014
New Revision: 1570150

URL: http://svn.apache.org/r1570150
Log:
OAK-1441: o.a.j.o.api.Tree/Root allows access to hidden nodes
Test case

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java?rev=1570150&r1=1570149&r2=1570150&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenTreeTest.java
Thu Feb 20 11:30:49 2014
@@ -16,17 +16,17 @@
  */
 package org.apache.jackrabbit.oak.security.authorization.evaluation;
 
-import org.apache.jackrabbit.oak.api.Tree;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
-
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
+import org.apache.jackrabbit.oak.api.Tree;
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
+
 /**
  * Test to make sure hidden trees are never exposed.
  */
@@ -52,10 +52,12 @@ public class HiddenTreeTest extends Abst
     }
 
     @Test
+    @Ignore("OAK-1441")  // FIXME OAK-1441
     public void testGetHiddenTree() {
         Tree hidden = parent.getChild(hiddenName);
         assertNotNull(hidden);
         assertFalse(hidden.exists());
+        assertEquals(0, hidden.getChildrenCount(1));
     }
 
     @Test



Mime
View raw message