public class SessionReadMethodsTest extends AbstractJCRTest
SessionReadMethodsTest...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 |
|---|
SessionReadMethodsTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown()
Releases the session aquired in
setUp(). |
void |
testGetAttribute()
Tests if getAttribute(String name) returns not null if the requested
attribute is existing
|
void |
testGetAttributeFailure()
Tests if getAttribute(String name) returns null if the requested attribute
is not existing
|
void |
testGetAttributeNames()
Tests if attribute names returned by getAttributeNames() do not return
null if used for getAttribute(String name)
|
void |
testGetItem()
Tests session.getItem() with the testRootNode and assures that the
returned node represents the same node in the repository as
testRootNode.
|
void |
testGetItemFailure()
Tests that session.getItem() throws a PathNotFoundException with a given
path to nowhere.
|
void |
testGetNodeByIdentifier()
Tests session.getNodeByIdentifier()
|
void |
testGetNodeByUUID()
Tests session.getNodeByUUID() using a valid uuid of a referenceable node
|
void |
testGetNodeByUUIDFailure()
Tests that session.getNodeByUUID() throws a ItemNotFoundException in case
of an invalid uuid.
|
void |
testIsLive()
Tests if isLive() returns true if the
Session is usable by
the client and false if it is not usable |
void |
testItemExists()
Tests session.itemExists() in the case of a valid and an invalid path.
|
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 testGetItemFailure()
throws RepositoryException,
NotExecutableException
public void testGetItem()
throws RepositoryException
RepositoryExceptionpublic void testItemExists()
throws RepositoryException
RepositoryExceptionpublic void testGetNodeByUUIDFailure()
throws RepositoryException
RepositoryExceptionpublic void testGetNodeByUUID()
throws RepositoryException,
NotExecutableException
public void testGetNodeByIdentifier()
throws RepositoryException,
NotExecutableException
RepositoryExceptionNotExecutableExceptionpublic void testGetAttribute()
throws NotExecutableException
NotExecutableExceptionpublic void testGetAttributeFailure()
public void testGetAttributeNames()
public void testIsLive()
Session is usable by
the client and false if it is not usableCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.