diff -u -r1.2 SetValueBinaryTest.java --- src/test/java/org/apache/jackrabbit/test/api/SetValueBinaryTest.java 22 Mar 2007 14:53:58 -0000 1.2 +++ src/test/java/org/apache/jackrabbit/test/api/SetValueBinaryTest.java 30 Mar 2007 16:43:49 -0000 @@ -70,6 +71,13 @@ // create a new node under the testRootNode node = testRootNode.addNode(nodeName1, testNodeType); + superuser.save(); + + // special case for repositories that do allow binary property + // values on jcr:content/jcr:data + if (propertyName1.equals("jcr:data") && node.hasNode("jcr:content") && ! node.hasProperty("jcr:data")) { + node = node.getNode("jcr:content"); + } // create a new single-value property and save it property1 = node.setProperty(propertyName1, superuser.getValueFactory().createValue(new ByteArrayInputStream(new byte[0])));