jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r427982 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
Date Wed, 02 Aug 2006 14:01:19 GMT
Author: mreutegg
Date: Wed Aug  2 07:01:14 2006
New Revision: 427982

URL: http://svn.apache.org/viewvc?rev=427982&view=rev
Log:
JCR-507: TCK: NodeTest#testMixinTypesProtected incorrectly fails

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java?rev=427982&r1=427981&r2=427982&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
Wed Aug  2 07:01:14 2006
@@ -29,6 +29,8 @@
 import javax.jcr.ItemExistsException;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.Repository;
+import javax.jcr.Value;
+import javax.jcr.PropertyType;
 import javax.jcr.lock.LockException;
 
 /**
@@ -1106,10 +1108,10 @@
         Node defaultRootNode = (Node) superuser.getItem(testRootNode.getPath());
 
         Node testNode = defaultRootNode.addNode(nodeName1, testNodeType);
-        testNode.addMixin(mixReferenceable);
 
+        Value mixinName = superuser.getValueFactory().createValue(mixLockable, PropertyType.NAME);
         try {
-            testNode.setProperty(jcrMixinTypes,mixLockable);
+            testNode.setProperty(jcrMixinTypes, new Value[]{mixinName});
             fail("Manually setting jcr:mixinTypes should throw a ConstraintViolationException");
         }
         catch (ConstraintViolationException success) {



Mime
View raw message