Class PredefinedNodeTypeTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.jackrabbit.test.JUnitTest
-
- org.apache.jackrabbit.test.AbstractJCRTest
-
- org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest
-
- All Implemented Interfaces:
junit.framework.Test
public class PredefinedNodeTypeTest extends AbstractJCRTest
PredefinedNodeTypeTesttests if the predefined node types are implemented correctly.
-
-
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 PredefinedNodeTypeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()Sets up the fixture for this test.protected voidtearDown()Releases the session aquired insetUp().voidtestActivity()Test for the predefined nt:activity node type.voidtestBase()Test for the predefined nt:base node type.voidtestChildNodeDef()Test for the predefined nt:childNodeDef node type.voidtestConfiguration()Test for the predefined nt:configuration node type.voidtestFile()Test for the predefined nt:file node type.voidtestFolder()Test for the predefined nt:folder node type.voidtestFrozenNode()Test for the predefined nt:frozenNode node type.voidtestHierarchyNode()Test for the predefined nt:hierarchyNode node type.voidtestIfPrimaryNodeTypesAreSubtypesOfNTBase()Tests if all primary node types are subtypes of node typent:basevoidtestLifecycle()Test for the predefined mix:lifecycle node type.voidtestLinkedFile()Test for the predefined nt:linkedFile node type.voidtestLockable()Test for the predefined mix:lockable node type.voidtestMixCreated()Test for the predefined mix:created node type.voidtestMixETag()Test for the predefined mix:etag node type.voidtestMixLanguage()Test for the predefined mix:language node type.voidtestMixLastModified()Test for the predefined mix:lastModified node type.voidtestMixMimeType()Test for the predefined mix:language node type.voidtestMixTitle()Test for the predefined mix:title node type.voidtestNodeType()Test for the predefined nt:nodeType node type.voidtestNtAddress()Test for the predefined nt:address node type.voidtestPropertyDef()Test for the predefined nt:propertyDef node type.voidtestQuery()Test for the predefined nt:query node type.voidtestReferenceable()Test for the predefined mix:referenceable node type.voidtestResource()Test for the predefined nt:resource node type.voidtestShareable()Test for the predefined mix:referenceable node type.voidtestSimpleVersionable()Test for the predefined mix:simpleVersionable node type.voidtestUnstructured()Test for the predefined nt:unstructured node type.voidtestVersion()Test for the predefined nt:version node type.voidtestVersionable()Test for the predefined mix:versionable node type.voidtestVersionedChild()Test for the predefined nt:versionedChild node type.voidtestVersionHistory()Test for the predefined nt:versionHistory node type.voidtestVersionLabels()Test for the predefined nt:versionLabels node type.-
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
-
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
-
setUp
protected void setUp() throws ExceptionSets up the fixture for this test.- Overrides:
setUpin classAbstractJCRTest- Throws:
Exception
-
tearDown
protected void tearDown() throws ExceptionReleases the session aquired insetUp().- Overrides:
tearDownin classAbstractJCRTest- Throws:
Exception
-
testIfPrimaryNodeTypesAreSubtypesOfNTBase
public void testIfPrimaryNodeTypesAreSubtypesOfNTBase() throws RepositoryExceptionTests if all primary node types are subtypes of node typent:base- Throws:
RepositoryException
-
testLifecycle
public void testLifecycle() throws NotExecutableExceptionTest for the predefined mix:lifecycle node type.- Throws:
NotExecutableException
-
testLockable
public void testLockable() throws NotExecutableExceptionTest for the predefined mix:lockable node type.- Throws:
NotExecutableException
-
testReferenceable
public void testReferenceable() throws NotExecutableExceptionTest for the predefined mix:referenceable node type.- Throws:
NotExecutableException
-
testShareable
public void testShareable() throws NotExecutableExceptionTest for the predefined mix:referenceable node type.- Throws:
NotExecutableException
-
testVersionable
public void testVersionable() throws NotExecutableExceptionTest for the predefined mix:versionable node type.- Throws:
NotExecutableException
-
testSimpleVersionable
public void testSimpleVersionable() throws NotExecutableExceptionTest for the predefined mix:simpleVersionable node type.- Throws:
NotExecutableException
-
testMixCreated
public void testMixCreated() throws NotExecutableExceptionTest for the predefined mix:created node type.- Throws:
NotExecutableException
-
testMixLastModified
public void testMixLastModified() throws NotExecutableExceptionTest for the predefined mix:lastModified node type.- Throws:
NotExecutableException
-
testMixETag
public void testMixETag() throws NotExecutableExceptionTest for the predefined mix:etag node type.- Throws:
NotExecutableException
-
testMixTitle
public void testMixTitle() throws NotExecutableExceptionTest for the predefined mix:title node type.- Throws:
NotExecutableException
-
testMixLanguage
public void testMixLanguage() throws NotExecutableExceptionTest for the predefined mix:language node type.- Throws:
NotExecutableException
-
testMixMimeType
public void testMixMimeType() throws NotExecutableExceptionTest for the predefined mix:language node type.- Throws:
NotExecutableException
-
testNtAddress
public void testNtAddress() throws NotExecutableExceptionTest for the predefined nt:address node type.- Throws:
NotExecutableException
-
testBase
public void testBase() throws NotExecutableExceptionTest for the predefined nt:base node type.- Throws:
NotExecutableException
-
testUnstructured
public void testUnstructured() throws NotExecutableExceptionTest for the predefined nt:unstructured node type.- Throws:
NotExecutableException
-
testHierarchyNode
public void testHierarchyNode() throws NotExecutableExceptionTest for the predefined nt:hierarchyNode node type.- Throws:
NotExecutableException
-
testFile
public void testFile() throws NotExecutableExceptionTest for the predefined nt:file node type.- Throws:
NotExecutableException
-
testLinkedFile
public void testLinkedFile() throws NotExecutableExceptionTest for the predefined nt:linkedFile node type.- Throws:
NotExecutableException
-
testFolder
public void testFolder() throws NotExecutableExceptionTest for the predefined nt:folder node type.- Throws:
NotExecutableException
-
testNodeType
public void testNodeType() throws NotExecutableExceptionTest for the predefined nt:nodeType node type.- Throws:
NotExecutableException
-
testPropertyDef
public void testPropertyDef() throws NotExecutableExceptionTest for the predefined nt:propertyDef node type.- Throws:
NotExecutableException
-
testChildNodeDef
public void testChildNodeDef() throws NotExecutableExceptionTest for the predefined nt:childNodeDef node type.- Throws:
NotExecutableException
-
testVersionHistory
public void testVersionHistory() throws NotExecutableExceptionTest for the predefined nt:versionHistory node type.- Throws:
NotExecutableException
-
testVersionLabels
public void testVersionLabels() throws NotExecutableExceptionTest for the predefined nt:versionLabels node type.- Throws:
NotExecutableException
-
testVersion
public void testVersion() throws NotExecutableExceptionTest for the predefined nt:version node type.- Throws:
NotExecutableException
-
testActivity
public void testActivity() throws NotExecutableExceptionTest for the predefined nt:activity node type.- Throws:
NotExecutableException
-
testConfiguration
public void testConfiguration() throws NotExecutableExceptionTest for the predefined nt:configuration node type.- Throws:
NotExecutableException
-
testFrozenNode
public void testFrozenNode() throws NotExecutableExceptionTest for the predefined nt:frozenNode node type.- Throws:
NotExecutableException
-
testVersionedChild
public void testVersionedChild() throws NotExecutableExceptionTest for the predefined nt:versionedChild node type.- Throws:
NotExecutableException
-
testQuery
public void testQuery() throws NotExecutableExceptionTest for the predefined nt:query node type.- Throws:
NotExecutableException
-
testResource
public void testResource() throws NotExecutableExceptionTest for the predefined nt:resource node type.- Throws:
NotExecutableException
-
-