|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.PropertyReadMethodsTest
public class PropertyReadMethodsTest
PropertyReadMethodsTest
...
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
PropertyReadMethodsTest()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, getProperty, getSize, isSupported, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyReadMethodsTest()
Method Detail |
---|
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
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 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
RepositoryException
NotExecutableException
public void testGetValue() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testGetValues() throws RepositoryException, NotExecutableException
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.
NotExecutableException
RepositoryException
public void testGetNode() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |