public class NodeTypeTest extends AbstractJCRTest
NodeType.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 |
|---|
NodeTypeTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Sets up the fixture for the test cases.
|
protected void |
tearDown()
Releases the session aquired in
setUp(). |
void |
testGetDeclaredChildNodeDefs()
Test if all node defs returned by getDeclaredChildNodeDefs() are also
returned by getChildNodeDefs().
|
void |
testGetDeclaredPropertyDefs()
Test if all property defs returned by getDeclatedPropertyDefs() are also
returned by getPropertyDefs().
|
void |
testGetDeclaredSubtypes()
Test if all node types returned by getDeclaredSubtypes() are also
returned by getSubtypes(), and that the information is consistent
with getSuperTypes/getDeclaredSuperTypes.
|
void |
testGetDeclaredSupertypes()
Test if all node types returned by getDeclaredSupertypes() are also
returned by getSupertypes().
|
void |
testGetName()
Test if getNode() returns the name of a node type.
|
void |
testGetPrimaryItemName()
Test if node.getPrimaryItemName() returns the same name as
node.getPrimaryItem().getName()
|
void |
testGetPrimaryItemNameNotExisting()
Test if node.getPrimaryItemName() returns null if no primary item is
defined
|
void |
testGetPropertyDefs()
Test if getPropertyDefs() of a primary node returns also "jcr:primaryType"
which is inherited from "nt:base".
|
void |
testGetSupertypes()
Test if getSupertypes() of a primary node that is not "nt:base" returns at
least "nt:base".
|
void |
testIsMixin()
Test if isMixin() returns false if applied on a primary node type and true
on a mixin node type.
|
void |
testIsNodeType()
Test if isNodeType(String nodeTypeName) returns true if nodeTypeName is
the name of the node itself.
|
void |
testIsNodeTypeQName()
Like
testIsNodeType(), but using qualified names |
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 testGetName()
throws RepositoryException
RepositoryExceptionpublic void testIsMixin()
throws RepositoryException
RepositoryExceptionpublic void testGetPrimaryItemName()
throws NotExecutableException,
RepositoryException
public void testGetPrimaryItemNameNotExisting()
throws NotExecutableException,
RepositoryException
public void testGetSupertypes()
throws NotExecutableException,
RepositoryException
public void testGetDeclaredSupertypes()
throws RepositoryException
RepositoryExceptionpublic void testGetDeclaredSubtypes()
throws RepositoryException
RepositoryExceptionpublic void testIsNodeType()
throws RepositoryException
RepositoryExceptionpublic void testIsNodeTypeQName()
throws RepositoryException
testIsNodeType(), but using qualified namesRepositoryExceptionpublic void testGetDeclaredPropertyDefs()
throws RepositoryException
RepositoryExceptionpublic void testGetPropertyDefs()
throws NotExecutableException,
RepositoryException
public void testGetDeclaredChildNodeDefs()
throws RepositoryException
RepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.