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, ntActivity, 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, tearDown
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
public void testSetPrimaryType() throws RepositoryException
Node.setPrimaryType(String)
RepositoryException
public void testSetCurrentType() throws RepositoryException
Node.setPrimaryType(String)
must always succeed.RepositoryException
public void testSetCurrentTypeOnNew() throws RepositoryException
Node.setPrimaryType(String)
to a new node must always succeed.RepositoryException
public void testAddNonExisting() throws RepositoryException
Node.setPrimaryType(String)
throws a
NoSuchNodeTypeException
if the
name of an existing node type is passed.RepositoryException
public void testSetMixinAsPrimaryType() throws RepositoryException
Node.setPrimaryType(String)
throws a
ConstraintViolationException
if the
name of a mixin type is passedRepositoryException
public void testSetAbstractAsPrimaryType() throws RepositoryException
Node.setPrimaryType(String)
throws a
ConstraintViolationException
if the
name of a mixin type is passedRepositoryException
public void testLocked() throws NotExecutableException, RepositoryException
Node.setPrimaryType(String)
throws a
LockException
if Node
is locked.public void testCheckedIn() throws NotExecutableException, RepositoryException
Node.setPrimaryType(String)
throws a
VersionException
if Node
is checked-in.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.