jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1568968 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation: HiddenPropertyTest.java HiddenTreeTest.java
Date Mon, 17 Feb 2014 12:56:35 GMT
Author: angela
Date: Mon Feb 17 12:56:35 2014
New Revision: 1568968

URL: http://svn.apache.org/r1568968
Log:
OAK-1424 : tests

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenPropertyTest.java
    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/HiddenPropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenPropertyTest.java?rev=1568968&r1=1568967&r2=1568968&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenPropertyTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/HiddenPropertyTest.java
Mon Feb 17 12:56:35 2014
@@ -26,12 +26,14 @@ import org.apache.jackrabbit.oak.api.Typ
 import org.apache.jackrabbit.oak.plugins.version.VersionConstants;
 import org.apache.jackrabbit.oak.spi.state.MoveDetector;
 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.assertNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 /**
  * Test for the hidden {@link org.apache.jackrabbit.oak.plugins.tree.TreeConstants#OAK_CHILD_ORDER}
property
@@ -92,4 +94,16 @@ public class HiddenPropertyTest extends 
         }
     }
 
+    @Ignore("OAK-1424") // FIXME : OAK-1424
+    @Test
+    public void testCreateHiddenProperty() {
+        Tree a = root.getTree("/a");
+        try {
+            a.setProperty(":hiddenProperty", "val");
+            root.commit();
+            fail();
+        } catch (Exception e) {
+            // success
+        }
+    }
 }
\ No newline at end of file

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=1568968&r1=1568967&r2=1568968&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
Mon Feb 17 12:56:35 2014
@@ -18,6 +18,7 @@ package org.apache.jackrabbit.oak.securi
 
 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;
@@ -97,4 +98,16 @@ public class HiddenTreeTest extends Abst
     public void testGetHiddenChildrenCount() {
         assertEquals(0, parent.getChildrenCount(1));
     }
+
+    @Ignore("OAK-1424") // FIXME : OAK-1424
+    @Test
+    public void testCreateHiddenChild() {
+        try {
+            Tree hidden = parent.addChild(":hiddenChild");
+            root.commit();
+            fail();
+        } catch (Exception e) {
+            // success
+        }
+    }
 }
\ No newline at end of file



Mime
View raw message