Package org.apache.jackrabbit.test.api
Class SetPropertyStringTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.jackrabbit.test.JUnitTest
-
- org.apache.jackrabbit.test.AbstractJCRTest
-
- org.apache.jackrabbit.test.api.SetPropertyStringTest
-
- All Implemented Interfaces:
junit.framework.Test
public class SetPropertyStringTest extends AbstractJCRTest
SetPropertyStringTesttests the methodsNode.setProperty(String, String),Node.setProperty(String, String[])andNode.setProperty(String, String[], int)
-
-
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 SetPropertyStringTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()protected voidtearDown()voidtestModifyStringArrayPropertyParent()Tests if modifying properties withNode.setProperty(String, String[])works withparentNode.save()voidtestModifyStringArrayPropertyParentWithPropertyType()Tests if modifying properties withNode.setProperty(String, String[], int)works withparentNode.save()voidtestModifyStringArrayPropertySession()Tests if modifying properties withNode.setProperty(String, String[])works withSession.save()voidtestModifyStringArrayPropertySessionWithPropertyType()Tests if modifying properties withNode.setProperty(String, String[], int)works withSession.save()voidtestModifyStringPropertyParent()Tests if modifying a property withNode.setProperty(String, String)works withparentNode.save()voidtestModifyStringPropertyParentWithPropertyType()Tests if modifying a property withNode.setProperty(String, String, int)works withparentNode.save()voidtestModifyStringPropertySession()Tests if modifying a property withNode.setProperty(String, String)works withSession.save()voidtestModifyStringPropertySessionWithPropertyType()Tests if modifying a property withNode.setProperty(String, String, int)works withSession.save()voidtestNewStringArrayPropertyParent()Tests if adding properties withNode.setProperty(String, String[])works withparentNode.save()voidtestNewStringArrayPropertyParentWithPropertyType()Tests if adding properties withNode.setProperty(String, String[], int)works withparentNode.save()voidtestNewStringArrayPropertySession()Tests if adding properties withNode.setProperty(String, String[])works withSession.save()voidtestNewStringArrayPropertySessionWithPropertyType()Tests if adding properties withNode.setProperty(String, String[], int)works withSession.save()voidtestNewStringPropertyParent()Tests if adding a property withNode.setProperty(String, String)works withparentNode.save()voidtestNewStringPropertyParentWithPropertyType()Tests if adding a property withNode.setProperty(String, String, int)works withparentNode.save()voidtestNewStringPropertySession()Tests if adding a property withNode.setProperty(String, String)works withSession.save()voidtestNewStringPropertySessionWithPropertyType()Tests if adding a property withNode.setProperty(String, String, int)works withSession.save()voidtestRemoveStringArrayPropertyParent()Tests if removing aString[]property withNode.setProperty(String, null)works withparentNode.save()voidtestRemoveStringArrayPropertyParentWithPropertyType()Tests if removing aString[]property withNode.setProperty(String, null, int)works withparentNode.save()voidtestRemoveStringArrayPropertySession()Tests if removing aString[]property withNode.setProperty(String, null)works withSession.save()voidtestRemoveStringArrayPropertySessionWithPropertyType()Tests if removing aString[]property withNode.setProperty(String, null, int)works withSession.save()voidtestRemoveStringPropertyParent()Tests if removing aStringproperty withNode.setProperty(String, null)works withparentNode.save()voidtestRemoveStringPropertyParentWithPropertyType()Tests if removing aStringproperty withNode.setProperty(String, null, int)works withparentNode.save()voidtestRemoveStringPropertySession()Tests if removing aStringproperty withNode.setProperty(String, null)works withSession.save()voidtestRemoveStringPropertySessionWithPropertyType()Tests if removing aStringproperty withNode.setProperty(String, null, int)works withSession.save()voidtestSetNullStringArray()Tests ifNode.setProperty(String, String[])saves an array of null values as an empty String[]voidtestSetNullStringArrayWithPropertyType()Tests ifNode.setProperty(String, String[], int)saves an array of null values as an empty String[]-
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
-
testNewStringPropertySession
public void testNewStringPropertySession() throws ExceptionTests if adding a property withNode.setProperty(String, String)works withSession.save()- Throws:
Exception
-
testModifyStringPropertySession
public void testModifyStringPropertySession() throws ExceptionTests if modifying a property withNode.setProperty(String, String)works withSession.save()- Throws:
Exception
-
testNewStringPropertyParent
public void testNewStringPropertyParent() throws ExceptionTests if adding a property withNode.setProperty(String, String)works withparentNode.save()- Throws:
Exception
-
testModifyStringPropertyParent
public void testModifyStringPropertyParent() throws ExceptionTests if modifying a property withNode.setProperty(String, String)works withparentNode.save()- Throws:
Exception
-
testRemoveStringPropertySession
public void testRemoveStringPropertySession() throws ExceptionTests if removing aStringproperty withNode.setProperty(String, null)works withSession.save()- Throws:
Exception
-
testRemoveStringPropertyParent
public void testRemoveStringPropertyParent() throws ExceptionTests if removing aStringproperty withNode.setProperty(String, null)works withparentNode.save()- Throws:
Exception
-
testNewStringPropertySessionWithPropertyType
public void testNewStringPropertySessionWithPropertyType() throws ExceptionTests if adding a property withNode.setProperty(String, String, int)works withSession.save()- Throws:
Exception
-
testModifyStringPropertySessionWithPropertyType
public void testModifyStringPropertySessionWithPropertyType() throws ExceptionTests if modifying a property withNode.setProperty(String, String, int)works withSession.save()- Throws:
Exception
-
testNewStringPropertyParentWithPropertyType
public void testNewStringPropertyParentWithPropertyType() throws ExceptionTests if adding a property withNode.setProperty(String, String, int)works withparentNode.save()- Throws:
Exception
-
testModifyStringPropertyParentWithPropertyType
public void testModifyStringPropertyParentWithPropertyType() throws ExceptionTests if modifying a property withNode.setProperty(String, String, int)works withparentNode.save()- Throws:
Exception
-
testRemoveStringPropertySessionWithPropertyType
public void testRemoveStringPropertySessionWithPropertyType() throws ExceptionTests if removing aStringproperty withNode.setProperty(String, null, int)works withSession.save()- Throws:
Exception
-
testRemoveStringPropertyParentWithPropertyType
public void testRemoveStringPropertyParentWithPropertyType() throws ExceptionTests if removing aStringproperty withNode.setProperty(String, null, int)works withparentNode.save()- Throws:
Exception
-
testNewStringArrayPropertySession
public void testNewStringArrayPropertySession() throws ExceptionTests if adding properties withNode.setProperty(String, String[])works withSession.save()- Throws:
Exception
-
testModifyStringArrayPropertySession
public void testModifyStringArrayPropertySession() throws ExceptionTests if modifying properties withNode.setProperty(String, String[])works withSession.save()- Throws:
Exception
-
testNewStringArrayPropertyParent
public void testNewStringArrayPropertyParent() throws ExceptionTests if adding properties withNode.setProperty(String, String[])works withparentNode.save()- Throws:
Exception
-
testModifyStringArrayPropertyParent
public void testModifyStringArrayPropertyParent() throws ExceptionTests if modifying properties withNode.setProperty(String, String[])works withparentNode.save()- Throws:
Exception
-
testRemoveStringArrayPropertySession
public void testRemoveStringArrayPropertySession() throws ExceptionTests if removing aString[]property withNode.setProperty(String, null)works withSession.save()- Throws:
Exception
-
testRemoveStringArrayPropertyParent
public void testRemoveStringArrayPropertyParent() throws ExceptionTests if removing aString[]property withNode.setProperty(String, null)works withparentNode.save()- Throws:
Exception
-
testSetNullStringArray
public void testSetNullStringArray() throws ExceptionTests ifNode.setProperty(String, String[])saves an array of null values as an empty String[]- Throws:
Exception
-
testNewStringArrayPropertySessionWithPropertyType
public void testNewStringArrayPropertySessionWithPropertyType() throws ExceptionTests if adding properties withNode.setProperty(String, String[], int)works withSession.save()- Throws:
Exception
-
testModifyStringArrayPropertySessionWithPropertyType
public void testModifyStringArrayPropertySessionWithPropertyType() throws ExceptionTests if modifying properties withNode.setProperty(String, String[], int)works withSession.save()- Throws:
Exception
-
testNewStringArrayPropertyParentWithPropertyType
public void testNewStringArrayPropertyParentWithPropertyType() throws ExceptionTests if adding properties withNode.setProperty(String, String[], int)works withparentNode.save()- Throws:
Exception
-
testModifyStringArrayPropertyParentWithPropertyType
public void testModifyStringArrayPropertyParentWithPropertyType() throws ExceptionTests if modifying properties withNode.setProperty(String, String[], int)works withparentNode.save()- Throws:
Exception
-
testRemoveStringArrayPropertySessionWithPropertyType
public void testRemoveStringArrayPropertySessionWithPropertyType() throws ExceptionTests if removing aString[]property withNode.setProperty(String, null, int)works withSession.save()- Throws:
Exception
-
testRemoveStringArrayPropertyParentWithPropertyType
public void testRemoveStringArrayPropertyParentWithPropertyType() throws ExceptionTests if removing aString[]property withNode.setProperty(String, null, int)works withparentNode.save()- Throws:
Exception
-
-