Package org.apache.jackrabbit.test.api
Class NameTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.jackrabbit.test.JUnitTest
-
- org.apache.jackrabbit.test.AbstractJCRTest
-
- org.apache.jackrabbit.test.api.NameTest
-
- All Implemented Interfaces:
junit.framework.Test
public class NameTest extends AbstractJCRTest
NameTest
...
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
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 Summary
Constructors Constructor Description NameTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testExpandedNameItem()
Test if the name of property created with an expanded name is properly return as standard JCR name.void
testExpandedNameNodeUnmappedNamespace()
Test whether a node can be created with an expanded name (using a previously unused namespace name).void
testExpandedNameValue()
Expanded names must always be resolved.void
testExpandedNameValueProperty()
Expanded names must always be resolved.void
testExpandedNodeTypeName()
Test if creating a node with an expanded node type name returns the proper standard JCR node type name, and that it works forNode.setPrimaryType(String)
.void
testReallyNotAndExpandedName()
Test whether a node can be created with something looking like an expanded name which is not-
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
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
-
Methods inherited from class junit.framework.TestCase
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
-
-
-
-
Method Detail
-
testExpandedNameValue
public void testExpandedNameValue() throws RepositoryException
Expanded names must always be resolved. Test NAME-value creation.- Throws:
RepositoryException
-
testExpandedNameValueProperty
public void testExpandedNameValueProperty() throws RepositoryException
Expanded names must always be resolved. Test setting a NAME-value property.- Throws:
RepositoryException
-
testExpandedNameItem
public void testExpandedNameItem() throws RepositoryException
Test if the name of property created with an expanded name is properly return as standard JCR name.- Throws:
RepositoryException
-
testExpandedNameNodeUnmappedNamespace
public void testExpandedNameNodeUnmappedNamespace() throws RepositoryException
Test whether a node can be created with an expanded name (using a previously unused namespace name).- Throws:
RepositoryException
-
testReallyNotAndExpandedName
public void testReallyNotAndExpandedName() throws RepositoryException
Test whether a node can be created with something looking like an expanded name which is not- Throws:
RepositoryException
-
testExpandedNodeTypeName
public void testExpandedNodeTypeName() throws RepositoryException
Test if creating a node with an expanded node type name returns the proper standard JCR node type name, and that it works forNode.setPrimaryType(String)
.- Throws:
RepositoryException
-
-