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, 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, javax.jcr.RepositoryException
NotExecutableException
javax.jcr.RepositoryException
public void testGetName() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testGetAncestorOfItemDepth() throws javax.jcr.RepositoryException
Item
, returns this Property
itself.javax.jcr.RepositoryException
public void testGetAncestorOfGreaterDepth() throws javax.jcr.RepositoryException
Property
, throws an ItemNotFoundException
.javax.jcr.RepositoryException
public void testGetAncestorOfNegativeDepth() throws javax.jcr.RepositoryException
ItemNotFoundException
.javax.jcr.RepositoryException
public void testGetParent() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testGetDepth() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testGetSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testIsMultiple() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testIsNode()
public void testIsSame() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testAccept() throws javax.jcr.RepositoryException
ItemVisitor
.javax.jcr.RepositoryException
public void testNoNullValue() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testMultiValueType() throws javax.jcr.RepositoryException, NotExecutableException
javax.jcr.RepositoryException
NotExecutableException
public void testGetValue() throws javax.jcr.RepositoryException, NotExecutableException
javax.jcr.RepositoryException
NotExecutableException
public void testGetValues() throws javax.jcr.RepositoryException, NotExecutableException
javax.jcr.RepositoryException
NotExecutableException
public 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.NotExecutableException
javax.jcr.RepositoryException
public void testGetNode() throws javax.jcr.RepositoryException, NotExecutableException
javax.jcr.RepositoryException
NotExecutableException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.