org.apache.jackrabbit.test.api.nodetype
Class PredefinedNodeTypeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jackrabbit.test.JUnitTest
              extended by org.apache.jackrabbit.test.AbstractJCRTest
                  extended by org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest
All Implemented Interfaces:
junit.framework.Test

public class PredefinedNodeTypeTest
extends AbstractJCRTest

PredefinedNodeTypeTest tests if the predefined node types are implemented correctly.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName
 
Fields inherited from class org.apache.jackrabbit.test.JUnitTest
log
 
Constructor Summary
PredefinedNodeTypeTest()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture for this test.
protected  void tearDown()
          Releases the session aquired in setUp().
 void testBase()
          Test for the predefined nt:base node type.
 void testChildNodeDef()
          Test for the predefined nt:childNodeDef node type.
 void testFile()
          Test for the predefined nt:file node type.
 void testFolder()
          Test for the predefined nt:folder node type.
 void testFrozenNode()
          Test for the predefined nt:frozenNode node type.
 void testHierarchyNode()
          Test for the predefined nt:hierarchyNode node type.
 void testIfPrimaryNodeTypesAreSubtypesOfNTBase()
          Tests if all primary node types are subtypes of node type nt:base
 void testLinkedFile()
          Test for the predefined nt:linkedFile node type.
 void testLockable()
          Test for the predefined mix:lockable node type.
 void testNodeType()
          Test for the predefined nt:nodeType node type.
 void testPropertyDef()
          Test for the predefined nt:propertyDef node type.
 void testQuery()
          Test for the predefined nt:query node type.
 void testReferenceable()
          Test for the predefined mix:referenceable node type.
 void testResource()
          Test for the predefined nt:resource node type.
 void testUnstructured()
          Test for the predefined nt:unstructured node type.
 void testVersion()
          Test for the predefined nt:version node type.
 void testVersionable()
          Test for the predefined mix:versionable node type.
 void testVersionedChild()
          Test for the predefined nt:versionedChild node type.
 void testVersionHistory()
          Test for the predefined nt:versionHistory node type.
 void testVersionLabels()
          Test for the predefined nt:versionLabels node type.
 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, getProperty, getSize, isSupported, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredefinedNodeTypeTest

public PredefinedNodeTypeTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Sets up the fixture for this test.

Overrides:
setUp in class AbstractJCRTest
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Releases the session aquired in setUp().

Overrides:
tearDown in class AbstractJCRTest
Throws:
Exception

testIfPrimaryNodeTypesAreSubtypesOfNTBase

public void testIfPrimaryNodeTypesAreSubtypesOfNTBase()
                                               throws RepositoryException
Tests if all primary node types are subtypes of node type nt:base

Throws:
RepositoryException

testLockable

public void testLockable()
                  throws NotExecutableException
Test for the predefined mix:lockable node type.

Throws:
NotExecutableException

testReferenceable

public void testReferenceable()
                       throws NotExecutableException
Test for the predefined mix:referenceable node type.

Throws:
NotExecutableException

testVersionable

public void testVersionable()
                     throws NotExecutableException
Test for the predefined mix:versionable node type.

Throws:
NotExecutableException

testBase

public void testBase()
              throws NotExecutableException
Test for the predefined nt:base node type.

Throws:
NotExecutableException

testUnstructured

public void testUnstructured()
                      throws NotExecutableException
Test for the predefined nt:unstructured node type.

Throws:
NotExecutableException

testHierarchyNode

public void testHierarchyNode()
                       throws NotExecutableException
Test for the predefined nt:hierarchyNode node type.

Throws:
NotExecutableException

testFile

public void testFile()
              throws NotExecutableException
Test for the predefined nt:file node type.

Throws:
NotExecutableException

testLinkedFile

public void testLinkedFile()
                    throws NotExecutableException
Test for the predefined nt:linkedFile node type.

Throws:
NotExecutableException

testFolder

public void testFolder()
                throws NotExecutableException
Test for the predefined nt:folder node type.

Throws:
NotExecutableException

testNodeType

public void testNodeType()
                  throws NotExecutableException
Test for the predefined nt:nodeType node type.

Throws:
NotExecutableException

testPropertyDef

public void testPropertyDef()
                     throws NotExecutableException
Test for the predefined nt:propertyDef node type.

Throws:
NotExecutableException

testChildNodeDef

public void testChildNodeDef()
                      throws NotExecutableException
Test for the predefined nt:childNodeDef node type.

Throws:
NotExecutableException

testVersionHistory

public void testVersionHistory()
                        throws NotExecutableException
Test for the predefined nt:versionHistory node type.

Throws:
NotExecutableException

testVersionLabels

public void testVersionLabels()
                       throws NotExecutableException
Test for the predefined nt:versionLabels node type.

Throws:
NotExecutableException

testVersion

public void testVersion()
                 throws NotExecutableException
Test for the predefined nt:version node type.

Throws:
NotExecutableException

testFrozenNode

public void testFrozenNode()
                    throws NotExecutableException
Test for the predefined nt:frozenNode node type.

Throws:
NotExecutableException

testVersionedChild

public void testVersionedChild()
                        throws NotExecutableException
Test for the predefined nt:versionedChild node type.

Throws:
NotExecutableException

testQuery

public void testQuery()
               throws NotExecutableException
Test for the predefined nt:query node type.

Throws:
NotExecutableException

testResource

public void testResource()
                  throws NotExecutableException
Test for the predefined nt:resource node type.

Throws:
NotExecutableException


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.