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
SetPropertyStringTest
tests 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 void
setUp()
protected void
tearDown()
void
testModifyStringArrayPropertyParent()
Tests if modifying properties withNode.setProperty(String, String[])
works withparentNode.save()
void
testModifyStringArrayPropertyParentWithPropertyType()
Tests if modifying properties withNode.setProperty(String, String[], int)
works withparentNode.save()
void
testModifyStringArrayPropertySession()
Tests if modifying properties withNode.setProperty(String, String[])
works withSession.save()
void
testModifyStringArrayPropertySessionWithPropertyType()
Tests if modifying properties withNode.setProperty(String, String[], int)
works withSession.save()
void
testModifyStringPropertyParent()
Tests if modifying a property withNode.setProperty(String, String)
works withparentNode.save()
void
testModifyStringPropertyParentWithPropertyType()
Tests if modifying a property withNode.setProperty(String, String, int)
works withparentNode.save()
void
testModifyStringPropertySession()
Tests if modifying a property withNode.setProperty(String, String)
works withSession.save()
void
testModifyStringPropertySessionWithPropertyType()
Tests if modifying a property withNode.setProperty(String, String, int)
works withSession.save()
void
testNewStringArrayPropertyParent()
Tests if adding properties withNode.setProperty(String, String[])
works withparentNode.save()
void
testNewStringArrayPropertyParentWithPropertyType()
Tests if adding properties withNode.setProperty(String, String[], int)
works withparentNode.save()
void
testNewStringArrayPropertySession()
Tests if adding properties withNode.setProperty(String, String[])
works withSession.save()
void
testNewStringArrayPropertySessionWithPropertyType()
Tests if adding properties withNode.setProperty(String, String[], int)
works withSession.save()
void
testNewStringPropertyParent()
Tests if adding a property withNode.setProperty(String, String)
works withparentNode.save()
void
testNewStringPropertyParentWithPropertyType()
Tests if adding a property withNode.setProperty(String, String, int)
works withparentNode.save()
void
testNewStringPropertySession()
Tests if adding a property withNode.setProperty(String, String)
works withSession.save()
void
testNewStringPropertySessionWithPropertyType()
Tests if adding a property withNode.setProperty(String, String, int)
works withSession.save()
void
testRemoveStringArrayPropertyParent()
Tests if removing aString[]
property withNode.setProperty(String, null)
works withparentNode.save()
void
testRemoveStringArrayPropertyParentWithPropertyType()
Tests if removing aString[]
property withNode.setProperty(String, null, int)
works withparentNode.save()
void
testRemoveStringArrayPropertySession()
Tests if removing aString[]
property withNode.setProperty(String, null)
works withSession.save()
void
testRemoveStringArrayPropertySessionWithPropertyType()
Tests if removing aString[]
property withNode.setProperty(String, null, int)
works withSession.save()
void
testRemoveStringPropertyParent()
Tests if removing aString
property withNode.setProperty(String, null)
works withparentNode.save()
void
testRemoveStringPropertyParentWithPropertyType()
Tests if removing aString
property withNode.setProperty(String, null, int)
works withparentNode.save()
void
testRemoveStringPropertySession()
Tests if removing aString
property withNode.setProperty(String, null)
works withSession.save()
void
testRemoveStringPropertySessionWithPropertyType()
Tests if removing aString
property withNode.setProperty(String, null, int)
works withSession.save()
void
testSetNullStringArray()
Tests ifNode.setProperty(String, String[])
saves an array of null values as an empty String[]void
testSetNullStringArrayWithPropertyType()
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:
setUp
in classAbstractJCRTest
- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception
- Overrides:
tearDown
in classAbstractJCRTest
- Throws:
Exception
-
testNewStringPropertySession
public void testNewStringPropertySession() throws Exception
Tests if adding a property withNode.setProperty(String, String)
works withSession.save()
- Throws:
Exception
-
testModifyStringPropertySession
public void testModifyStringPropertySession() throws Exception
Tests if modifying a property withNode.setProperty(String, String)
works withSession.save()
- Throws:
Exception
-
testNewStringPropertyParent
public void testNewStringPropertyParent() throws Exception
Tests if adding a property withNode.setProperty(String, String)
works withparentNode.save()
- Throws:
Exception
-
testModifyStringPropertyParent
public void testModifyStringPropertyParent() throws Exception
Tests if modifying a property withNode.setProperty(String, String)
works withparentNode.save()
- Throws:
Exception
-
testRemoveStringPropertySession
public void testRemoveStringPropertySession() throws Exception
Tests if removing aString
property withNode.setProperty(String, null)
works withSession.save()
- Throws:
Exception
-
testRemoveStringPropertyParent
public void testRemoveStringPropertyParent() throws Exception
Tests if removing aString
property withNode.setProperty(String, null)
works withparentNode.save()
- Throws:
Exception
-
testNewStringPropertySessionWithPropertyType
public void testNewStringPropertySessionWithPropertyType() throws Exception
Tests if adding a property withNode.setProperty(String, String, int)
works withSession.save()
- Throws:
Exception
-
testModifyStringPropertySessionWithPropertyType
public void testModifyStringPropertySessionWithPropertyType() throws Exception
Tests if modifying a property withNode.setProperty(String, String, int)
works withSession.save()
- Throws:
Exception
-
testNewStringPropertyParentWithPropertyType
public void testNewStringPropertyParentWithPropertyType() throws Exception
Tests if adding a property withNode.setProperty(String, String, int)
works withparentNode.save()
- Throws:
Exception
-
testModifyStringPropertyParentWithPropertyType
public void testModifyStringPropertyParentWithPropertyType() throws Exception
Tests if modifying a property withNode.setProperty(String, String, int)
works withparentNode.save()
- Throws:
Exception
-
testRemoveStringPropertySessionWithPropertyType
public void testRemoveStringPropertySessionWithPropertyType() throws Exception
Tests if removing aString
property withNode.setProperty(String, null, int)
works withSession.save()
- Throws:
Exception
-
testRemoveStringPropertyParentWithPropertyType
public void testRemoveStringPropertyParentWithPropertyType() throws Exception
Tests if removing aString
property withNode.setProperty(String, null, int)
works withparentNode.save()
- Throws:
Exception
-
testNewStringArrayPropertySession
public void testNewStringArrayPropertySession() throws Exception
Tests if adding properties withNode.setProperty(String, String[])
works withSession.save()
- Throws:
Exception
-
testModifyStringArrayPropertySession
public void testModifyStringArrayPropertySession() throws Exception
Tests if modifying properties withNode.setProperty(String, String[])
works withSession.save()
- Throws:
Exception
-
testNewStringArrayPropertyParent
public void testNewStringArrayPropertyParent() throws Exception
Tests if adding properties withNode.setProperty(String, String[])
works withparentNode.save()
- Throws:
Exception
-
testModifyStringArrayPropertyParent
public void testModifyStringArrayPropertyParent() throws Exception
Tests if modifying properties withNode.setProperty(String, String[])
works withparentNode.save()
- Throws:
Exception
-
testRemoveStringArrayPropertySession
public void testRemoveStringArrayPropertySession() throws Exception
Tests if removing aString[]
property withNode.setProperty(String, null)
works withSession.save()
- Throws:
Exception
-
testRemoveStringArrayPropertyParent
public void testRemoveStringArrayPropertyParent() throws Exception
Tests if removing aString[]
property withNode.setProperty(String, null)
works withparentNode.save()
- Throws:
Exception
-
testSetNullStringArray
public void testSetNullStringArray() throws Exception
Tests ifNode.setProperty(String, String[])
saves an array of null values as an empty String[]- Throws:
Exception
-
testNewStringArrayPropertySessionWithPropertyType
public void testNewStringArrayPropertySessionWithPropertyType() throws Exception
Tests if adding properties withNode.setProperty(String, String[], int)
works withSession.save()
- Throws:
Exception
-
testModifyStringArrayPropertySessionWithPropertyType
public void testModifyStringArrayPropertySessionWithPropertyType() throws Exception
Tests if modifying properties withNode.setProperty(String, String[], int)
works withSession.save()
- Throws:
Exception
-
testNewStringArrayPropertyParentWithPropertyType
public void testNewStringArrayPropertyParentWithPropertyType() throws Exception
Tests if adding properties withNode.setProperty(String, String[], int)
works withparentNode.save()
- Throws:
Exception
-
testModifyStringArrayPropertyParentWithPropertyType
public void testModifyStringArrayPropertyParentWithPropertyType() throws Exception
Tests if modifying properties withNode.setProperty(String, String[], int)
works withparentNode.save()
- Throws:
Exception
-
testRemoveStringArrayPropertySessionWithPropertyType
public void testRemoveStringArrayPropertySessionWithPropertyType() throws Exception
Tests if removing aString[]
property withNode.setProperty(String, null, int)
works withSession.save()
- Throws:
Exception
-
testRemoveStringArrayPropertyParentWithPropertyType
public void testRemoveStringArrayPropertyParentWithPropertyType() throws Exception
Tests if removing aString[]
property withNode.setProperty(String, null, int)
works withparentNode.save()
- Throws:
Exception
-
-