jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-507) TCK: NodeTest#testMixinTypesProtected incorrectly fails
Date Wed, 26 Jul 2006 23:32:13 GMT
TCK: NodeTest#testMixinTypesProtected incorrectly fails
-------------------------------------------------------

                 Key: JCR-507
                 URL: http://issues.apache.org/jira/browse/JCR-507
             Project: Jackrabbit
          Issue Type: Bug
          Components: test
            Reporter: David Pitfield


The test calls addMixin to add mix:referenceable to a node.  This step is not required to
test that jcr:mixinTypes is protected, yet may fail if the node is already mix:referenceable
or cannot be mix:referenceable.

Proposal: remove the call to addMixin.

The test attempts to set jcr:mixinTypes to a scalar value, but reports a failure if the implementation
throws ValueFormatException instead of ConstraintViolationException.

Proposal: set jcr:mixinTypes to an array of length 1.

--- NodeTest.java       (revision 422074)
+++ NodeTest.java       (working copy)
@@ -1130,10 +1142,9 @@
         Node defaultRootNode = (Node) superuser.getItem(testRootNode.getPath());
  
         Node testNode = defaultRootNode.addNode(nodeName1, testNodeType);
-        testNode.addMixin(mixReferenceable);
  
         try {
-            testNode.setProperty(jcrMixinTypes,mixLockable);
+            testNode.setProperty(jcrMixinTypes, new String[] { mixLockable });
             fail("Manually setting jcr:mixinTypes should throw a ConstraintViolationException");
         }
         catch (ConstraintViolationException success) {


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message