public class NodeSetPrimaryTypeTest extends AbstractJCRTest
SetPrimaryType...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 |
|---|
NodeSetPrimaryTypeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAddNonExisting()
Tests if
Node.setPrimaryType(String) throws a
NoSuchNodeTypeException if the
name of an existing node type is passed. |
void |
testCheckedIn()
Tests if
Node.setPrimaryType(String) throws a
VersionException if Node is checked-in. |
void |
testLocked()
Tests if
Node.setPrimaryType(String) throws a
LockException if Node is locked. |
void |
testSetAbstractAsPrimaryType()
Tests if
Node.setPrimaryType(String) throws a
ConstraintViolationException if the
name of a mixin type is passed |
void |
testSetCurrentType()
Passing the current primary type to
Node.setPrimaryType(String)
must always succeed. |
void |
testSetCurrentTypeOnNew()
Passing the current primary type to
Node.setPrimaryType(String)
to a new node must always succeed. |
void |
testSetMixinAsPrimaryType()
Tests if
Node.setPrimaryType(String) throws a
ConstraintViolationException if the
name of a mixin type is passed |
void |
testSetPrimaryType()
Tests a successful call to
Node.setPrimaryType(String) |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run, setUp, tearDownassertEquals, 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, toStringpublic void testSetPrimaryType()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String)javax.jcr.RepositoryExceptionpublic void testSetCurrentType()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String)
must always succeed.javax.jcr.RepositoryExceptionpublic void testSetCurrentTypeOnNew()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String)
to a new node must always succeed.javax.jcr.RepositoryExceptionpublic void testAddNonExisting()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String) throws a
NoSuchNodeTypeException if the
name of an existing node type is passed.javax.jcr.RepositoryExceptionpublic void testSetMixinAsPrimaryType()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String) throws a
ConstraintViolationException if the
name of a mixin type is passedjavax.jcr.RepositoryExceptionpublic void testSetAbstractAsPrimaryType()
throws javax.jcr.RepositoryException
Node.setPrimaryType(String) throws a
ConstraintViolationException if the
name of a mixin type is passedjavax.jcr.RepositoryExceptionpublic void testLocked()
throws NotExecutableException,
javax.jcr.RepositoryException
Node.setPrimaryType(String) throws a
LockException if Node is locked.NotExecutableExceptionjavax.jcr.RepositoryExceptionpublic void testCheckedIn()
throws NotExecutableException,
javax.jcr.RepositoryException
Node.setPrimaryType(String) throws a
VersionException if Node is checked-in.NotExecutableExceptionjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.