public class PropertyReadMethodsTest extends AbstractJCRTest
PropertyReadMethodsTest
...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 |
---|
PropertyReadMethodsTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp()
Sets up the fixture for this test.
|
protected void |
tearDown()
Releases the session aquired in
setUp() . |
void |
testAccept()
Tests if a Property calls the correct visit method on an
ItemVisitor . |
void |
testGetAncestorOfGreaterDepth()
Test if getting the ancestor of depth = n, where n is greater than depth
of this
Property , throws an ItemNotFoundException . |
void |
testGetAncestorOfItemDepth()
Test if the ancestor at depth = n, where n is the depth of this
Item , returns this Property itself. |
void |
testGetAncestorOfNegativeDepth()
Test if getting the ancestor of negative depth throws an
ItemNotFoundException . |
void |
testGetDepth()
Tests if depth of a property of depth of node + 1
|
void |
testGetName()
Tests if getName() returns same as last name returned by getPath()
|
void |
testGetNode()
Tests if Property.getNode() fails with ValueFormatException for
multivalued properties.
|
void |
testGetParent()
Tests if getParent() returns parent node
|
void |
testGetPath()
Tests if getPath() returns the correct path.
|
void |
testGetSession()
Tests if getSession() is same as through which the Property was acquired
|
void |
testGetValue()
Tests failure of Property.getValue() method for a multivalue property.
|
void |
testGetValueCopyStoredValues()
Tests if
Property.getValues() returns an array that is a copy
of the stored values, so changes to it are not reflected in internal storage. |
void |
testGetValues()
Tests failure of Property.getValues() method for a single value
property.
|
void |
testIsMultiple()
Tests if isMultiple() is consistent with PropertyDefinition.isMultiple().
|
void |
testIsNode()
Tests if isNode() returns false
|
void |
testIsSame()
Tests if isSame() returns true when retrieving a property through
different sessions
|
void |
testMultiValueType()
Tests that all values of a multivalue property have the same property
type.
|
void |
testNoNullValue()
Tests that no null value property exists in a given node tree.
|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
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
protected void setUp() throws Exception
setUp
in class AbstractJCRTest
Exception
protected void tearDown() throws Exception
setUp()
.tearDown
in class AbstractJCRTest
Exception
public void testGetPath() throws NotExecutableException, RepositoryException
public void testGetName() throws RepositoryException
RepositoryException
public void testGetAncestorOfItemDepth() throws RepositoryException
Item
, returns this Property
itself.RepositoryException
public void testGetAncestorOfGreaterDepth() throws RepositoryException
Property
, throws an ItemNotFoundException
.RepositoryException
public void testGetAncestorOfNegativeDepth() throws RepositoryException
ItemNotFoundException
.RepositoryException
public void testGetParent() throws RepositoryException
RepositoryException
public void testGetDepth() throws RepositoryException
RepositoryException
public void testGetSession() throws RepositoryException
RepositoryException
public void testIsMultiple() throws RepositoryException
RepositoryException
public void testIsNode()
public void testIsSame() throws RepositoryException
RepositoryException
public void testAccept() throws RepositoryException
ItemVisitor
.RepositoryException
public void testNoNullValue() throws RepositoryException
RepositoryException
public void testMultiValueType() throws RepositoryException, NotExecutableException
public void testGetValue() throws RepositoryException, NotExecutableException
public void testGetValues() throws RepositoryException, NotExecutableException
public void testGetValueCopyStoredValues() throws NotExecutableException, RepositoryException
Property.getValues()
returns an array that is a copy
of the stored values, so changes to it are not reflected in internal storage.public void testGetNode() throws RepositoryException, NotExecutableException
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.