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, 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, 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
setUp().tearDown in class AbstractJCRTestExceptionpublic void testGetPath()
throws NotExecutableException,
javax.jcr.RepositoryException
NotExecutableExceptionjavax.jcr.RepositoryExceptionpublic void testGetName()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testGetAncestorOfItemDepth()
throws javax.jcr.RepositoryException
Item, returns this Property itself.javax.jcr.RepositoryExceptionpublic void testGetAncestorOfGreaterDepth()
throws javax.jcr.RepositoryException
Property, throws an ItemNotFoundException.javax.jcr.RepositoryExceptionpublic void testGetAncestorOfNegativeDepth()
throws javax.jcr.RepositoryException
ItemNotFoundException.javax.jcr.RepositoryExceptionpublic void testGetParent()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testGetDepth()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testGetSession()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testIsMultiple()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testIsNode()
public void testIsSame()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testAccept()
throws javax.jcr.RepositoryException
ItemVisitor.javax.jcr.RepositoryExceptionpublic void testNoNullValue()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testMultiValueType()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testGetValue()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testGetValues()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testGetValueCopyStoredValues()
throws NotExecutableException,
javax.jcr.RepositoryException
Property.getValues() returns an array that is a copy
of the stored values, so changes to it are not reflected in internal storage.NotExecutableExceptionjavax.jcr.RepositoryExceptionpublic void testGetNode()
throws javax.jcr.RepositoryException,
NotExecutableException
javax.jcr.RepositoryExceptionNotExecutableExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.