Class AddEventListenerTest
- java.lang.Object
- 
- junit.framework.Assert
- 
- junit.framework.TestCase
- 
- org.apache.jackrabbit.test.JUnitTest
- 
- org.apache.jackrabbit.test.AbstractJCRTest
- 
- org.apache.jackrabbit.test.api.observation.AbstractObservationTest
- 
- org.apache.jackrabbit.test.api.observation.AddEventListenerTest
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- junit.framework.Test
 
 public class AddEventListenerTest extends AbstractObservationTest Tests the options for addEventListener().Configuration requirements: The AbstractJCRTest.testRootmust allow child nodes of typetestNodeType(). The child nodes that are created will be namedAbstractJCRTest.nodeName1andAbstractJCRTest.nodeName2. FurthermoretestNodeType()must allow to add child nodes of the same type (testNodeType()).Certain test require that testNodeType()is mix:referenceable or allows to add that mixin. If the repository does not support mix:referenceable aNotExecutableExceptionis thrown in those test cases.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.jackrabbit.test.api.observation.AbstractObservationTestAbstractObservationTest.Callable
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.jackrabbit.test.api.observation.AbstractObservationTestALL_TYPES, DEFAULT_WAIT_TIMEOUT, obsMgr
 - 
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTestisReadOnly, 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 SummaryConstructors Constructor Description AddEventListenerTest()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestIsDeepFalseNodeAdded()voidtestIsDeepFalsePropertyAdded()voidtestNodeType()Tests if events are only generated for specified node types.voidtestNoLocalTrue()Tests if no events are generated for own modifications ifnoLocalis set totrue.voidtestPath()Tests if events are only created for a sub tree of the workspace.voidtestUUID()Tests if events are only generated for specified UUIDs.- 
Methods inherited from class org.apache.jackrabbit.test.api.observation.AbstractObservationTestaddEventListener, addEventListener, checkNodeAdded, checkNodeRemoved, checkNodes, checkPropertyAdded, checkPropertyChanged, checkPropertyRemoved, getEventByPath, getEvents, removeEventListener, setUp, tearDown, toArray
 - 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTestcheckSupportedOption, 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.TestCaseassertEquals, 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- 
testPathpublic void testPath() throws RepositoryExceptionTests if events are only created for a sub tree of the workspace.- Throws:
- RepositoryException
 
 - 
testIsDeepFalseNodeAddedpublic void testIsDeepFalseNodeAdded() throws RepositoryException- Throws:
- RepositoryException
 
 - 
testIsDeepFalsePropertyAddedpublic void testIsDeepFalsePropertyAdded() throws RepositoryException- Throws:
- RepositoryException
 
 - 
testNoLocalTruepublic void testNoLocalTrue() throws RepositoryExceptionTests if no events are generated for own modifications ifnoLocalis set totrue.- Throws:
- RepositoryException
 
 - 
testUUIDpublic void testUUID() throws RepositoryException, NotExecutableExceptionTests if events are only generated for specified UUIDs.
 - 
testNodeTypepublic void testNodeType() throws RepositoryExceptionTests if events are only generated for specified node types.- Throws:
- RepositoryException
 
 
- 
 
-