Package org.apache.jackrabbit.test.api
Class SetValueStringTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.jackrabbit.test.JUnitTest
-
- org.apache.jackrabbit.test.AbstractJCRTest
-
- org.apache.jackrabbit.test.api.SetValueStringTest
-
- All Implemented Interfaces:
junit.framework.Test
public class SetValueStringTest extends AbstractJCRTest
Tests the variousProperty.setValue(Value)methods.Configuration requirements:
The node at
AbstractJCRTest.testRootmust allow a child node of typeAbstractJCRTest.testNodeTypewith nameAbstractJCRTest.nodeName1. The node typeAbstractJCRTest.testNodeTypemust define a single value string property with nameAbstractJCRTest.propertyName1and a multi value string property with nameAbstractJCRTest.propertyName2.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
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 Summary
Constructors Constructor Description SetValueStringTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()protected voidtearDown()voidtestEmptyMultiStringParent()Test the assignment of an empty property by assigning it a null array, saved from the parent NodevoidtestEmptyMultiStringSession()Test the assignment of an empty property by assigning it a null array, saved from the SessionvoidtestMultiString()Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value String (mv)voidtestMultiStringParent()Test the persistence of a property modified with an multi-value String parameter and saved from the parent Node Requires a multi-value String (mv)voidtestMultiStringSession()Test the persistence of a property modified with an multi-value String parameter and saved from the Session Requires a multi-value String (mv)voidtestMultiStringSingle()Test the assignment of a single-value to a multi-value property Requires a single-value String (PROP_VALUE_1)voidtestMultiValue()Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value Value (mv)voidtestMultiValueParent()Test the persistence of a property modified with an multi-value Value parameter and saved from the parent Node Requires a multi-value Value (mv2)voidtestMultiValueSession()Test the persistence of a property modified with an multi-value Value parameter and saved from the Session Requires a multi-value Value (mv2)voidtestMultiValueSingle()Test the assignment of a single-value to a multi-value property Requires a single-value Value (sv1)voidtestNullMultiValue()Test the deletion of a value in a multi-value propertyvoidtestRemoveMultiStringParent()Test the deletion of a property by assigning it a null value, saved from the parent NodevoidtestRemoveMultiStringSession()Test the deletion of a property by assigning it a null value, saved from the SessionvoidtestRemoveMultiValueParent()Test the deletion of a property by assigning it a null value, saved from the parent NodevoidtestRemoveMultiValueSession()Test the deletion of a property by assigning it a null value, saved from the SessionvoidtestRemoveStringParent()Test the deletion of a property by assigning it a null value, saved from the parent NodevoidtestRemoveStringSession()Test the deletion of a property by assigning it a null value, saved from the SessionvoidtestRemoveValueParent()Test the deletion of a property by assigning it a null value, saved from the parent NodevoidtestRemoveValueSession()Test the deletion of a property by assigning it a null value, saved from the SessionvoidtestStringParent()Test the persistence of a property modified with a String parameter and saved from the parent Node Requires a single-value String (PROP_VALUE_2)voidtestStringSession()Test the persistence of a property modified with a String parameter and saved from the Session Requires a single-value String (PROP_VALUE_2)voidtestValueParent()Test the persistence of a property modified with a Value parameter, and saved from the parent Node Requires a single-value Value (sv2)voidtestValueSession()Test the persistence of a property modified with a Value parameter and saved from the Session Requires a single-value Value (sv2)-
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
-
Methods inherited from class junit.framework.TestCase
assertEquals, 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, toString
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws Exception- Overrides:
setUpin classAbstractJCRTest- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception- Overrides:
tearDownin classAbstractJCRTest- Throws:
Exception
-
testValueSession
public void testValueSession() throws RepositoryExceptionTest the persistence of a property modified with a Value parameter and saved from the Session Requires a single-value Value (sv2)- Throws:
RepositoryException
-
testValueParent
public void testValueParent() throws RepositoryExceptionTest the persistence of a property modified with a Value parameter, and saved from the parent Node Requires a single-value Value (sv2)- Throws:
RepositoryException
-
testMultiValue
public void testMultiValue() throws RepositoryExceptionTest the modification of a single-value property updated with a multi-value parameter Requires a multi-value Value (mv)- Throws:
RepositoryException
-
testRemoveValueSession
public void testRemoveValueSession() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the Session- Throws:
RepositoryException
-
testRemoveValueParent
public void testRemoveValueParent() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the parent Node- Throws:
RepositoryException
-
testStringSession
public void testStringSession() throws RepositoryExceptionTest the persistence of a property modified with a String parameter and saved from the Session Requires a single-value String (PROP_VALUE_2)- Throws:
RepositoryException
-
testStringParent
public void testStringParent() throws RepositoryExceptionTest the persistence of a property modified with a String parameter and saved from the parent Node Requires a single-value String (PROP_VALUE_2)- Throws:
RepositoryException
-
testMultiString
public void testMultiString() throws RepositoryExceptionTest the modification of a single-value property updated with a multi-value parameter Requires a multi-value String (mv)- Throws:
RepositoryException
-
testRemoveStringSession
public void testRemoveStringSession() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the Session- Throws:
RepositoryException
-
testRemoveStringParent
public void testRemoveStringParent() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the parent Node- Throws:
RepositoryException
-
testMultiValueSession
public void testMultiValueSession() throws RepositoryExceptionTest the persistence of a property modified with an multi-value Value parameter and saved from the Session Requires a multi-value Value (mv2)- Throws:
RepositoryException
-
testMultiValueParent
public void testMultiValueParent() throws RepositoryExceptionTest the persistence of a property modified with an multi-value Value parameter and saved from the parent Node Requires a multi-value Value (mv2)- Throws:
RepositoryException
-
testMultiValueSingle
public void testMultiValueSingle() throws RepositoryExceptionTest the assignment of a single-value to a multi-value property Requires a single-value Value (sv1)- Throws:
RepositoryException
-
testRemoveMultiValueSession
public void testRemoveMultiValueSession() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the Session- Throws:
RepositoryException
-
testRemoveMultiValueParent
public void testRemoveMultiValueParent() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the parent Node- Throws:
RepositoryException
-
testNullMultiValue
public void testNullMultiValue() throws RepositoryExceptionTest the deletion of a value in a multi-value property- Throws:
RepositoryException
-
testMultiStringSession
public void testMultiStringSession() throws RepositoryExceptionTest the persistence of a property modified with an multi-value String parameter and saved from the Session Requires a multi-value String (mv)- Throws:
RepositoryException
-
testMultiStringParent
public void testMultiStringParent() throws RepositoryExceptionTest the persistence of a property modified with an multi-value String parameter and saved from the parent Node Requires a multi-value String (mv)- Throws:
RepositoryException
-
testMultiStringSingle
public void testMultiStringSingle() throws RepositoryExceptionTest the assignment of a single-value to a multi-value property Requires a single-value String (PROP_VALUE_1)- Throws:
RepositoryException
-
testRemoveMultiStringSession
public void testRemoveMultiStringSession() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the Session- Throws:
RepositoryException
-
testRemoveMultiStringParent
public void testRemoveMultiStringParent() throws RepositoryExceptionTest the deletion of a property by assigning it a null value, saved from the parent Node- Throws:
RepositoryException
-
testEmptyMultiStringParent
public void testEmptyMultiStringParent() throws RepositoryExceptionTest the assignment of an empty property by assigning it a null array, saved from the parent Node- Throws:
RepositoryException
-
testEmptyMultiStringSession
public void testEmptyMultiStringSession() throws RepositoryExceptionTest the assignment of an empty property by assigning it a null array, saved from the Session- Throws:
RepositoryException
-
-