public class SetPropertyValueTest extends AbstractJCRTest
SetPropertyValueTest tests the methods Node.setProperty(String,
Value), Node.setProperty(String, Value[]) and
Node.setProperty(String, Value[], int)isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName| Constructor and Description |
|---|
SetPropertyValueTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testCompactValueArrayWithNulls()
Tests if
Node.setProperty(String, Value[]) correctly compacts
the value array by removing all null values |
void |
testModifyValueArrayPropertyParent()
Tests if modifying properties with
Node.setProperty(String,
Value[]) works with parentNode.save() |
void |
testModifyValueArrayPropertyParentWithPropertyType()
Tests if modifying properties with
Node.setProperty(String,
Value[], int) works with parentNode.save() |
void |
testModifyValueArrayPropertySession()
Tests if modifying properties with
Node.setProperty(String,
Value[]) works with Session.save() |
void |
testModifyValueArrayPropertySessionWithPropertyType()
Tests if modifying properties with
Node.setProperty(String,
Value[], int) works with Session.save() |
void |
testModifyValuePropertyParent()
Tests if modifying a property with
Node.setProperty(String,
Value) works with parentNode.save() |
void |
testModifyValuePropertyParentWithPropertyType()
Tests if modifying a property with
Node.setProperty(String,
Value, int) works with parentNode.save() |
void |
testModifyValuePropertySession()
Tests if modifying a property with
Node.setProperty(String,
Value) works with Session.save() |
void |
testModifyValuePropertySessionWithPropertyType()
Tests if modifying a property with
Node.setProperty(String,
Value, int) works with Session.save() |
void |
testNewValueArrayPropertyParent()
Tests if adding properties with
Node.setProperty(String,
Value[]) works with parentNode.save() |
void |
testNewValueArrayPropertyParentWithPropertyType()
Tests if adding properties with
Node.setProperty(String, Value[],
int) works with parentNode.save() |
void |
testNewValueArrayPropertySession()
Tests if adding properties with
Node.setProperty(String,
Value[]) works with Session.save() |
void |
testNewValueArrayPropertySessionWithPropertyType()
Tests if adding properties with
Node.setProperty(String, Value[],
int) works with Session.save() |
void |
testNewValuePropertyParent()
Tests if adding a property with
Node.setProperty(String,
Value) works with parentNode.save() |
void |
testNewValuePropertyParentWithPropertyType()
Tests if adding a property with
Node.setProperty(String,
Value, int) works with parentNode.save() |
void |
testNewValuePropertySession()
Tests if adding a property with
Node.setProperty(String,
Value) works with Session.save() |
void |
testNewValuePropertySessionWithPropertyType()
Tests if adding a property with
Node.setProperty(String,
Value, int) works with Session.save() |
void |
testRemoveValueArrayPropertyParent()
Tests if removing a
Value[] property with
Node.setProperty(String, null) works with
parentNode.save() |
void |
testRemoveValueArrayPropertyParentWithPropertyType()
Tests if removing a
Value[] property with
Node.setProperty(String, null, int) works with
parentNode.save() |
void |
testRemoveValueArrayPropertySession()
Tests if removing a
Value[] property with
Node.setProperty(String, null) works with
Session.save() |
void |
testRemoveValueArrayPropertySessionWithPropertyType()
Tests if removing a
Value[] property with
Node.setProperty(String, null, int) works with
Session.save() |
void |
testRemoveValuePropertyParent()
Tests if removing a
Value property with
Node.setProperty(String, null) works with
parentNode.save() |
void |
testRemoveValuePropertyParentWithPropertyType()
Tests if removing a
Value property with
Node.setProperty(String, null, int) works with
parentNode.save() |
void |
testRemoveValuePropertySession()
Tests if removing a
Value property with
Node.setProperty(String, null) works with
Session.save() |
void |
testRemoveValuePropertySessionWithPropertyType()
Tests if removing a
Value property with
Node.setProperty(String, null, int) works with
Session.save() |
void |
testSetMixedValueArrayValueFormatException()
Tests if
Node.setProperty(String, Value[]) throws a ValueFormatException when trying to set a multi-value property
to an array of values with different types |
void |
testSetMixedValueArrayValueFormatExceptionWithPropertyType()
Tests if
Node.setProperty(String, Value[], int) throws a
ValueFormatException when trying to set a multi-value
property to an array of values with different types |
void |
testSetNullValueArray()
Tests if
Node.setProperty(String, Value[]) saves an array of
null values as an empty Value[] |
void |
testSetNullValueArrayWithPropertyType()
Tests if
Node.setProperty(String, Value[], int) saves an
array of null values as an empty Value[] |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, runassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toStringprotected void setUp()
throws Exception
setUp in class AbstractJCRTestExceptionprotected void tearDown()
throws Exception
tearDown in class AbstractJCRTestExceptionpublic void testNewValuePropertySession()
throws Exception
Node.setProperty(String,
Value) works with Session.save()Exceptionpublic void testModifyValuePropertySession()
throws Exception
Node.setProperty(String,
Value) works with Session.save()Exceptionpublic void testNewValuePropertyParent()
throws Exception
Node.setProperty(String,
Value) works with parentNode.save()Exceptionpublic void testModifyValuePropertyParent()
throws Exception
Node.setProperty(String,
Value) works with parentNode.save()Exceptionpublic void testRemoveValuePropertySession()
throws Exception
Value property with
Node.setProperty(String, null) works with
Session.save()Exceptionpublic void testRemoveValuePropertyParent()
throws Exception
Value property with
Node.setProperty(String, null) works with
parentNode.save()Exceptionpublic void testNewValuePropertySessionWithPropertyType()
throws Exception
Node.setProperty(String,
Value, int) works with Session.save()Exceptionpublic void testModifyValuePropertySessionWithPropertyType()
throws Exception
Node.setProperty(String,
Value, int) works with Session.save()Exceptionpublic void testNewValuePropertyParentWithPropertyType()
throws Exception
Node.setProperty(String,
Value, int) works with parentNode.save()Exceptionpublic void testModifyValuePropertyParentWithPropertyType()
throws Exception
Node.setProperty(String,
Value, int) works with parentNode.save()Exceptionpublic void testRemoveValuePropertySessionWithPropertyType()
throws Exception
Value property with
Node.setProperty(String, null, int) works with
Session.save()Exceptionpublic void testRemoveValuePropertyParentWithPropertyType()
throws Exception
Value property with
Node.setProperty(String, null, int) works with
parentNode.save()Exceptionpublic void testNewValueArrayPropertySession()
throws Exception
Node.setProperty(String,
Value[]) works with Session.save()Exceptionpublic void testModifyValueArrayPropertySession()
throws Exception
Node.setProperty(String,
Value[]) works with Session.save()Exceptionpublic void testNewValueArrayPropertyParent()
throws Exception
Node.setProperty(String,
Value[]) works with parentNode.save()Exceptionpublic void testModifyValueArrayPropertyParent()
throws Exception
Node.setProperty(String,
Value[]) works with parentNode.save()Exceptionpublic void testSetMixedValueArrayValueFormatException()
throws Exception
Node.setProperty(String, Value[]) throws a ValueFormatException when trying to set a multi-value property
to an array of values with different typesExceptionpublic void testRemoveValueArrayPropertySession()
throws Exception
Value[] property with
Node.setProperty(String, null) works with
Session.save()Exceptionpublic void testRemoveValueArrayPropertyParent()
throws Exception
Value[] property with
Node.setProperty(String, null) works with
parentNode.save()Exceptionpublic void testSetNullValueArray()
throws Exception
Node.setProperty(String, Value[]) saves an array of
null values as an empty Value[]Exceptionpublic void testCompactValueArrayWithNulls()
throws Exception
Node.setProperty(String, Value[]) correctly compacts
the value array by removing all null valuesExceptionpublic void testNewValueArrayPropertySessionWithPropertyType()
throws Exception
Node.setProperty(String, Value[],
int) works with Session.save()Exceptionpublic void testModifyValueArrayPropertySessionWithPropertyType()
throws Exception
Node.setProperty(String,
Value[], int) works with Session.save()Exceptionpublic void testNewValueArrayPropertyParentWithPropertyType()
throws Exception
Node.setProperty(String, Value[],
int) works with parentNode.save()Exceptionpublic void testModifyValueArrayPropertyParentWithPropertyType()
throws Exception
Node.setProperty(String,
Value[], int) works with parentNode.save()Exceptionpublic void testSetMixedValueArrayValueFormatExceptionWithPropertyType()
throws Exception
Node.setProperty(String, Value[], int) throws a
ValueFormatException when trying to set a multi-value
property to an array of values with different typesExceptionpublic void testRemoveValueArrayPropertySessionWithPropertyType()
throws Exception
Value[] property with
Node.setProperty(String, null, int) works with
Session.save()Exceptionpublic void testRemoveValueArrayPropertyParentWithPropertyType()
throws Exception
Value[] property with
Node.setProperty(String, null, int) works with
parentNode.save()ExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.