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 voidtestExpandedNameItem()Test if the name of property created with an expanded name is properly return as standard JCR name.voidtestExpandedNameNodeUnmappedNamespace()Test whether a node can be created with an expanded name (using a previously unused namespace name).voidtestExpandedNameValue()Expanded names must always be resolved.voidtestExpandedNameValueProperty()Expanded names must always be resolved.voidtestExpandedNodeTypeName()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).voidtestReallyNotAndExpandedName()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 RepositoryExceptionExpanded names must always be resolved. Test NAME-value creation.- Throws:
RepositoryException
-
testExpandedNameValueProperty
public void testExpandedNameValueProperty() throws RepositoryExceptionExpanded names must always be resolved. Test setting a NAME-value property.- Throws:
RepositoryException
-
testExpandedNameItem
public void testExpandedNameItem() throws RepositoryExceptionTest if the name of property created with an expanded name is properly return as standard JCR name.- Throws:
RepositoryException
-
testExpandedNameNodeUnmappedNamespace
public void testExpandedNameNodeUnmappedNamespace() throws RepositoryExceptionTest whether a node can be created with an expanded name (using a previously unused namespace name).- Throws:
RepositoryException
-
testReallyNotAndExpandedName
public void testReallyNotAndExpandedName() throws RepositoryExceptionTest whether a node can be created with something looking like an expanded name which is not- Throws:
RepositoryException
-
testExpandedNodeTypeName
public void testExpandedNodeTypeName() throws RepositoryExceptionTest 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
-
-