Package | Description |
---|---|
org.apache.jackrabbit.core |
Contains the core classes that provide the implementation of the JCR API.
|
org.apache.jackrabbit.test | |
org.apache.jackrabbit.test.api | |
org.apache.jackrabbit.test.api.lock | |
org.apache.jackrabbit.test.api.nodetype | |
org.apache.jackrabbit.test.api.observation | |
org.apache.jackrabbit.test.api.query | |
org.apache.jackrabbit.test.api.query.qom | |
org.apache.jackrabbit.test.api.retention | |
org.apache.jackrabbit.test.api.security | |
org.apache.jackrabbit.test.api.version | |
org.apache.jackrabbit.test.api.version.simple |
Modifier and Type | Method and Description |
---|---|
Principal |
JackrabbitRepositoryStub.getUnknownPrincipal(Session session) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractJCRTest.checkSupportedOption(String descriptorKey)
Throws a
NotExecutableException if the repository does
not support the feature identified by the given discriptorKey . |
protected void |
AbstractJCRTest.ensureCanSetProperty(Node node,
String propertyName,
int propertyType,
boolean isMultiple)
Checks that the repository can set the property to the required type, otherwise aborts with
NotExecutableException . |
protected void |
AbstractJCRTest.ensureCanSetProperty(Node node,
String propertyName,
Value value)
Checks that the repository can set the property to the required type, otherwise aborts with
NotExecutableException . |
protected void |
AbstractJCRTest.ensureCanSetProperty(Node node,
String propertyName,
Value[] values)
Checks that the repository can set the property to the required type, otherwise aborts with
NotExecutableException . |
protected void |
AbstractJCRTest.ensureKnowsNodeType(Session session,
String nodetype)
Checks that the repository supports the specified node type, otherwise aborts with
NotExecutableException |
protected void |
AbstractJCRTest.ensureLockingSupported()
Checks that the repository supports locking, otherwise aborts with
NotExecutableException . |
protected void |
AbstractJCRTest.ensureMixinType(Node node,
String mixin)
Ensures that the given
node is of the given mixin type. |
protected void |
AbstractJCRTest.ensureMultipleWorkspacesSupported()
Checks that the repository supports multiple workspace, otherwise aborts with
NotExecutableException . |
Principal |
JNDIRepositoryStub.getUnknownPrincipal(Session session) |
Principal |
RepositoryHelper.getUnknownPrincipal(Session session)
Returns a
Principal identifiying an unknown user. |
abstract Principal |
RepositoryStub.getUnknownPrincipal(Session session)
Returns a
Principal identifiying an unknown user. |
Modifier and Type | Method and Description |
---|---|
protected String |
WorkspaceCopyReferenceableTest.getOtherWorkspaceName() |
protected String |
WorkspaceCopySameNameSibsTest.getOtherWorkspaceName() |
protected String |
WorkspaceCopyVersionableTest.getOtherWorkspaceName() |
protected String |
WorkspaceMoveReferenceableTest.getOtherWorkspaceName() |
protected String |
WorkspaceMoveSameNameSibsTest.getOtherWorkspaceName() |
protected String |
WorkspaceMoveVersionableTest.getOtherWorkspaceName() |
protected Node |
SerializationTest.initVersioningException(boolean returnParent)
Creates a simple target tree consisting of a checked-in node and an
ordinary child node below.
|
protected void |
UndefinedPropertyTest.setUp()
Sets up the fixture for this test.
|
void |
NodeAddMixinTest.testAddInheritedMixin()
Test if adding an inherited mixin type has no effect.
|
void |
NodeAddMixinTest.testAddMixinReferencable()
Tests if adding mix:referenceable automatically populates the jcr:uuid
value.
|
void |
NodeAddMixinTest.testAddMixinTwice()
Test if adding the same mixin twice works as expected.
|
void |
NodeCanAddMixinTest.testAddMixinTwice()
Test if adding the same mixin twice would be allowed.
|
void |
NodeAddMixinTest.testAddSuccessfully()
Tests if
Node.addMixin(String mixinName) adds the requested
mixin and stores it in property jcr:mixinTypes |
void |
ReferencesTest.testAlterReference()
Tests changing a reference property
|
void |
SetPropertyConstraintViolationExceptionTest.testBinaryProperty()
Tests if setProperty(String name, InputStream value) and
setProperty(String name, Value value) where value is a BinaryValue throw
a ConstraintViolationException either immediately (by setProperty()), or
on save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testBinaryProperty()
Tests if setValue(InputStream value) and setValue(Value value) where
value is a BinaryValue throw a ConstraintViolationException if the change
would violate a value constraint
|
void |
SetValueValueFormatExceptionTest.testBoolean()
Tests if setValue(boolean) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetPropertyConstraintViolationExceptionTest.testBooleanProperty()
Tests if setProperty(String name, boolean value) and setProperty(String
name, Value value) where value is a BooleanValue throw a
ConstraintViolationException either immediately (by setProperty()), or on
save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testBooleanProperty()
Tests if setValue(boolean value) and setValue(Value value) where value is
a BooleanValue throw a ConstraintViolationException if the change would
violate a value constraint
|
void |
SetValueValueFormatExceptionTest.testCalendar()
Tests if setValue(Calendar) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
NodeAddMixinTest.testCheckedIn()
Tests if
Node.addMixin(String mixinName) throws a
VersionException if Node is checked-in. |
void |
NodeCanAddMixinTest.testCheckedIn()
Tests if
Node.canAddMixin(String mixinName) throws a
VersionException if Node is checked-in |
void |
NodeRemoveMixinTest.testCheckedIn()
Tests if
Node.removeMixin(String mixinName) throws a
VersionException if Node is checked-in |
void |
NodeSetPrimaryTypeTest.testCheckedIn()
Tests if
Node.setPrimaryType(String) throws a
VersionException if Node is checked-in. |
void |
WorkspaceCloneTest.testCloneNodesLocked()
A LockException is thrown if a lock prevents the copy.
|
void |
WorkspaceCloneReferenceableTest.testCloneNodesReferenceableAndNonreferenceable()
The clone method clones both referenceable and nonreferenceable nodes.
|
void |
WorkspaceCloneReferenceableTest.testCloneNodesReferenceableNodesOriginalUUID()
In the case of referenceable nodes clone preserves the node's UUID so
that the new node in the destination workspcace has the same UUID as the
node in the source workspace.
|
void |
WorkspaceCloneReferenceableTest.testCloneNodesRemoveExistingFalse()
If removeExisting is false then a UUID collision causes this method to
throw a ItemExistsException and no changes are made.
|
void |
WorkspaceCloneReferenceableTest.testCloneNodesRemoveExistingTrue()
If removeExisting is true then the existing node is removed from its
current location and the cloned node with the same UUID from srcWorkspace
is copied to this workspace as part of the copied subtree (that is, not
into the former location of the old node).
|
void |
WorkspaceCloneTest.testCloneNodesTwice()
If successful, the changes are persisted immediately, there is no need to
call save.
|
void |
WorkspaceCloneVersionableTest.testCloneNodesVersionableAndCheckedIn()
A VersionException is thrown if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest
versionable ancestor is checked-in.
|
void |
WorkspaceCopyBetweenWorkspacesTest.testCopyNodesLocked()
A LockException is thrown if a lock prevents the copy.
|
void |
WorkspaceCopyTest.testCopyNodesLocked()
A LockException is thrown if a lock prevents the copy.
|
void |
WorkspaceCopyReferenceableTest.testCopyNodesNewUUID()
Copies of referenceable nodes (nodes with UUIDs) are automatically given
new UUIDs.
|
void |
WorkspaceCopyBetweenWorkspacesReferenceableTest.testCopyNodesReferenceableNodesNewUUID()
Copies of referenceable nodes (nodes with UUIDs) are automatically given
new UUIDs.
|
void |
WorkspaceCopyBetweenWorkspacesVersionableTest.testCopyNodesVersionableAndCheckedIn()
A VersionException is thrown if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest
versionable ancestor is checked-in.
|
void |
WorkspaceCopyVersionableTest.testCopyNodesVersionableAndCheckedIn()
A VersionException is thrown if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest
versionable ancestor is checked-in.
|
void |
SetPropertyConstraintViolationExceptionTest.testDateProperty()
Tests if setProperty(String name, Calendar value) and setProperty(String
name, Value value) where value is a DateValue throw a
ConstraintViolationException either immediately (by setProperty()), or on
save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testDateProperty()
Tests if setValue(Calendar value) and setValue(Value value) where value
is a DateValue throw a ConstraintViolationException if the change would
violate a value constraint
|
void |
SetValueValueFormatExceptionTest.testDouble()
Tests if setValue(double) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetPropertyConstraintViolationExceptionTest.testDoubleProperty()
Tests if setProperty(String name, double value) and setProperty(String
name, Value value) where value is a DoubleValue throw a
ConstraintViolationException either immediately (by setProperty()), or on
save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testDoubleProperty()
Tests if setValue(Double value) and setValue(Value value) where value is
a DoubleValue throw a ConstraintViolationException if the change would
violate a value constraint
|
void |
LifecycleTest.testFollowLifecycleTransition() |
void |
LifecycleTest.testGetAllowedLifecycleTransitions() |
void |
SessionReadMethodsTest.testGetAttribute()
Tests if getAttribute(String name) returns not null if the requested
attribute is existing
|
void |
NodeTest.testGetCorrespondingNodePath()
Creates a node with same path in both workspaces to check if
Node.getCorrespondingNodePath(String) works properly. |
void |
NodeTest.testGetCorrespondingNodePathItemNotFoundException()
Calls
Node.getCorrespondingNodePath(String) on a node
that has no corresponding node in second workspace |
void |
SessionReadMethodsTest.testGetItemFailure()
Tests that session.getItem() throws a PathNotFoundException with a given
path to nowhere.
|
void |
NodeDiscoveringNodeTypesTest.testGetMixinNodeTypes()
Test if getMixinNodeType returns the node types according to the property
"jcr:mixinTypes".
|
void |
NodeReadMethodsTest.testGetName()
Tests if getName() returns same as last name returned by getPath()
|
void |
BinaryPropertyTest.testGetNode()
Tests the conversion from Binary type to Reference or Path type.
|
void |
NodeReadMethodsTest.testGetNode()
Test if getNode(String relPath) returns the correct node and if a
PathNotFoundException is thrown when Node at relPath does not exist
|
void |
PropertyReadMethodsTest.testGetNode()
Tests if Property.getNode() fails with ValueFormatException for
multivalued properties.
|
void |
StringPropertyTest.testGetNode()
Tests conversion from String type to Reference or Path type.
|
void |
SessionReadMethodsTest.testGetNodeByIdentifier()
Tests session.getNodeByIdentifier()
|
void |
SessionReadMethodsTest.testGetNodeByUUID()
Tests session.getNodeByUUID() using a valid uuid of a referenceable node
|
void |
NodeReadMethodsTest.testGetNodesNamePattern()
Test getNodes(String namePattern) with all possible patterns.
|
void |
NodeReadMethodsTest.testGetNodesNamePatternArray()
Test getNodes(String[] namePattern) with all possible patterns.
|
void |
NodeReadMethodsTest.testGetParent()
Tests if getParent() returns parent node
|
void |
NodeReadMethodsTest.testGetPath()
Tests if getPath() returns the correct path.
|
void |
PropertyReadMethodsTest.testGetPath()
Tests if getPath() returns the correct path.
|
void |
NamespaceRegistryReadMethodsTest.testGetPrefixNamespaceException()
Tests if a
NamespaceException is thrown when
NamespaceRegistry.getPrefix(String) is called for an
unknown URI. |
void |
NodeReadMethodsTest.testGetPrimaryItem()
Test if getPrimaryItem returns the primary item as defined in the primary
node type.
|
void |
NodeReadMethodsTest.testGetPrimaryItemItemNotFoundException()
Test if getPrimaryItem does throw an ItemNotFoundException if the primary
node type does not define a primary item.
|
void |
NodeDiscoveringNodeTypesTest.testGetPrimaryNodeType()
Test if getPrimaryNodeType() returns the node type according to the
property "jcr:primaryType"
|
void |
NodeReadMethodsTest.testGetPropertiesNamePattern()
Test getProperties(String namePattern) with all possible patterns.
|
void |
NodeReadMethodsTest.testGetPropertiesNamePatternArray()
Test getProperties(String[] namePattern) with all possible patterns.
|
void |
BinaryPropertyTest.testGetProperty()
Tests the conversion from Binary type to Path type.
|
void |
NodeReadMethodsTest.testGetProperty()
Test if getProperty(String relPath) returns the correct node and if a
PathNotFoundException is thrown when property at relPath does not exist
|
void |
StringPropertyTest.testGetProperty()
Tests conversion from String type to Reference or Path type.
|
void |
NodeReadMethodsTest.testGetReferences() |
void |
ReferencesTest.testGetReferencesWithName()
Tests Node.getReferences(String)
|
void |
NodeIteratorTest.testGetSize()
Tests if
RangeIterator.getSize() returns the correct
size. |
void |
NamespaceRegistryReadMethodsTest.testGetURINamespaceException()
Tests if a
NamespaceException is thrown when
NamespaceRegistry.getURI(String) is called for an
unknown prefix. |
void |
NodeReadMethodsTest.testGetUUID()
Test if getUUID() returns the string value of the property "jcr:uuid".
|
void |
NodeReadMethodsTest.testGetUUIDOfNonReferenceableNode()
Test if getUUID() throws a UnsupportedRepositoryOperationException if
Node is not referenceable
|
void |
PropertyReadMethodsTest.testGetValue()
Tests failure of Property.getValue() method for a multivalue property.
|
void |
PropertyReadMethodsTest.testGetValueCopyStoredValues()
Tests if
Property.getValues() returns an array that is a copy
of the stored values, so changes to it are not reflected in internal storage. |
void |
PropertyReadMethodsTest.testGetValues()
Tests failure of Property.getValues() method for a single value
property.
|
void |
NodeReadMethodsTest.testHasNode()
Test if hasNode(String relPath) returns true if the required node exists
and false if it doesn't.
|
void |
NodeReadMethodsTest.testHasProperty()
Test if hasProperty(String relPath) returns true if a required property
exists and false if it doesn't.
|
void |
ImpersonateTest.testImpersonate()
Tests if
Session.impersonate(Credentials) works properly |
void |
SetValueValueFormatExceptionTest.testInputStream()
Tests if setValue(InputStream) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
NodeDiscoveringNodeTypesTest.testIsNodeType()
Test if isNodeTye(String nodeTypeName) returns true if nodeTypeName is the
name of the primary node type, the name of a mixin node type and the name
of a supertype.
|
void |
NodeAddMixinTest.testLocked()
Tests if
Node.addMixin(String mixinName) throws a
LockException if Node is locked |
void |
NodeCanAddMixinTest.testLocked()
Tests if
Node.canAddMixin(String mixinName) throws a
LockException if Node is locked |
void |
NodeRemoveMixinTest.testLocked()
Tests if
Node.removeMixin(String mixinName) throws a
LockException if Node is locked. |
void |
NodeSetPrimaryTypeTest.testLocked()
Tests if
Node.setPrimaryType(String) throws a
LockException if Node is locked. |
void |
SetValueValueFormatExceptionTest.testLong()
Tests if setValue(long) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetPropertyConstraintViolationExceptionTest.testLongProperty()
Tests if setProperty(String name, long value) and setProperty(String
name, Value value) where value is a LongValue throw a
ConstraintViolationException either immediately (by setProperty()), or on
save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testLongProperty()
Tests if setValue(Long value) and setValue(Value value) where value is a
LongValue throw a ConstraintViolationException if the change would
violate a value constraint
|
void |
AddNodeTest.testMixinNodeType()
Tests if addNode() throws a ConstraintViolationException in case
of an mixin node type.
|
void |
SessionTest.testMoveLockException()
Calls
Session.move(String src, String dest) where
the parent node of src is locked. |
void |
WorkspaceMoveTest.testMoveNodesLocked()
A LockException is thrown if a lock prevents the copy.
|
void |
WorkspaceMoveReferenceableTest.testMoveNodesReferenceableNodesNewUUID()
Copies of referenceable nodes (nodes with UUIDs) remains their original
UUIDs.
|
void |
WorkspaceMoveVersionableTest.testMoveNodesVersionableAndCheckedIn()
A VersionException is thrown if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest
versionable ancestor is checked-in.
|
void |
SetValueConstraintViolationExceptionTest.testMultipleBinaryProperty()
Tests if setValue(Value[] values) where values are of type BinaryValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
SetValueConstraintViolationExceptionTest.testMultipleBooleanProperty()
Tests if setValue(Value[] values) where values are of type BooleanValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
SetValueConstraintViolationExceptionTest.testMultipleDateProperty()
Tests if setValue(Value[] values) where values are of type DateValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
SetValueConstraintViolationExceptionTest.testMultipleDoubleProperty()
Tests if setValue(Value[] values) where values are of type DoubleValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
SetValueConstraintViolationExceptionTest.testMultipleLongProperty()
Tests if setValue(Value[] values) where values are of type LongValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
SetValueConstraintViolationExceptionTest.testMultipleReferenceProperty()
Tests if setValue(Value[] values) where values are of type ReferenceValue
throw a ConstraintViolationException if the change would violate a value
constraint
|
void |
PropertyReadMethodsTest.testMultiValueType()
Tests that all values of a multivalue property have the same property
type.
|
void |
SetValueValueFormatExceptionTest.testNode()
Tests if setValue(Node) throws a ValueFormatException immediately (not
on save) if the property is not of type REFERENCE.
|
void |
SetValueVersionExceptionTest.testNode()
Tests if setValue(Node) throws a VersionException immediately
or on save if the parent node of this property is checked-in.
|
void |
SetPropertyAssumeTypeTest.testNodeAssumeTypeOfValue()
Tests if
Node.setProperty(String, Node) if the node type of
this node does not indicate a specific property type, then the property
type of the supplied Value object is used and if the property already
exists (has previously been set) it assumes the new property type. |
void |
SetValueValueFormatExceptionTest.testNodeNotReferenceable()
Tests if setValue(Node) throws a ValueFormatException immediately (not
on save) if the specified node is not referencable.
|
void |
SetValueReferenceTest.testNodeSession()
Test the persistence of a property modified with an Node parameter and
saved from the Session Requires a Node value (node)
|
void |
GetWeakReferencesTest.testNonReferenceable() |
void |
ReferencesTest.testNonReferenceable() |
void |
NodeRemoveMixinTest.testNotAssigned()
Tests if
Node.removeMixin(String mixinName) throws a
NoSuchNodeTypeException Node does not have assigned the
requested mixin |
void |
NodeOrderableChildNodesTest.testOrderBeforeInvalidDest()
Tries to reorder child nodes using
Node.orderBefore(String, String)
with an invalid destination reference. |
void |
NodeOrderableChildNodesTest.testOrderBeforeInvalidSrc()
Tries to reorder child nodes using
Node.orderBefore(String,
String) with an invalid source reference. |
void |
NodeOrderableChildNodesTest.testOrderBeforePlaceAtEndParentSave()
Creates two child nodes, reorders first node to end, uses parentNode's
Item.save() . |
void |
NodeOrderableChildNodesTest.testOrderBeforePlaceAtEndSessionSave()
Test Creates two child nodes, verifies that they are added propery.
|
void |
NodeOrderableChildNodesTest.testOrderBeforeSecondToFirstParentSave()
Creates two child nodes, reorders second node before first, uses
parentNode's
Item.save() . |
void |
NodeOrderableChildNodesTest.testOrderBeforeSecondToFirstSessionSave()
Creates two child nodes than reorders second node before first, saves
using
Session.save() . |
void |
NodeOrderableChildNodesTest.testOrderBeforeUnsupportedRepositoryOperationException()
Tries to reorder on a node using
Node.orderBefore(String, String)
that does not support child reordering. |
void |
ReferenceableRootNodesTest.testReferenceableRootNode()
A repository implementation may make its workspace root nodes
mix:referenceable.
|
void |
SetPropertyConstraintViolationExceptionTest.testReferenceProperty()
Tests if setProperty(String name, Node value) and setProperty(String
name, Value value) where value is a ReferenceValue throw a
ConstraintViolationException either immediately (by setProperty()), or on
save, if the change would violate a node type constraint
|
void |
SetValueConstraintViolationExceptionTest.testReferenceProperty()
Tests if setValue(Node value) and setValue(Value value) where value is a
ReferenceValue throw a ConstraintViolationException if the change would
violate a value constraint
|
void |
ReferencesTest.testReferences()
Tests Node.getReferences()
|
void |
ReferencesTest.testReferenceTarget()
Tests Property.getNode();
|
void |
SetValueBinaryTest.testRemoveBinaryParent()
Test the deletion of a property by assigning it a null value, saved from
the parent Node
|
void |
SetValueBinaryTest.testRemoveBinarySession()
Test the deletion of a property by assigning it a null value, saved from
the Session
|
void |
SessionRemoveItemTest.testRemoveCheckedInItem() |
void |
SessionRemoveItemTest.testRemoveLockedChildItem() |
void |
SessionRemoveItemTest.testRemoveLockedNode() |
void |
NodeTest.testRemoveNodeLockedItself()
Tests if
Node.remove() does not throw a
LockException if Node is locked. |
void |
NodeTest.testRemoveNodeParentLocked()
Tests if
Node.remove() throws a LockException
if the parent node of Node is locked. |
void |
NodeRemoveMixinTest.testRemoveSuccessfully()
Tests if
Node.removeMixin(String mixinName) removes the
requested mixin properly |
void |
NodeUUIDTest.testSaveMovedRefNode()
Moves a referencable node using
Session.move(String,
String) with one session and saves afterward changes made with a second
session to the moved node using Item.save() . |
void |
SessionUUIDTest.testSaveMovedRefNode()
Moves a referencable node using
Session.move(String, String) with one session and
saves afterward changes made with a second session to the moved node using Session.save() . |
void |
NodeUUIDTest.testSaveReferentialIntegrityException()
Tries to remove a node that is a reference target using
Item.save() .Procedure: Creates two nodes with same session One has a referencing property pointing to the other node Target node gets removed. This should generate a ReferentialIntegrityException upon save. |
void |
SessionUUIDTest.testSaveReferentialIntegrityException()
Tries to remove a node that is a reference target using
Session.save() . |
void |
SetPropertyAssumeTypeTest.testString()
Tests if
Node.setProperty(String, String, int) if the node
type of this node does not indicate a specific property type, then the
type parameter is used. |
void |
SetValueValueFormatExceptionTest.testString()
Tests if setValue(String) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetValueValueFormatExceptionTest.testStringArray()
Tests if setValue(String[]) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetPropertyAssumeTypeTest.testStringConstraintViolationExceptionBecauseOfInvalidTypeParameter()
Tests if
Node.setProperty(String, String, int) throws a
ConstraintViolationException if the type parameter and the type of the
property do not match. |
void |
NodeTest.testUpdate()
Checks if
Node.update(String) works properly by
creating the same node in two workspaces one with a child node the other
with a property set. |
void |
NodeTest.testUpdateInvalidItemStateException()
Tries calling
Node.update(String) after node has
changed in first workspace but not been saved yet. |
void |
SetPropertyAssumeTypeTest.testValue()
Tests if
Node.setProperty(String, Value, int) if the node
type of this node does not indicate a specific property type, then the
type parameter is used. |
void |
SetValueValueFormatExceptionTest.testValue()
Tests if setValue(Value) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetValueValueFormatExceptionTest.testValueArray()
Tests if setValue(Value[]) throws a ValueFormatException immediately (not
on save) if a conversion fails.
|
void |
SetPropertyAssumeTypeTest.testValueAssumeTypeOfValue()
Tests if
Node.setProperty(String, Value) if the node type of
this node does not indicate a specific property type, then the property
type of the supplied Value object is used and if the property already
exists (has previously been set) it assumes the new property type. |
void |
SetPropertyAssumeTypeTest.testValueConstraintViolationExceptionBecauseOfInvalidTypeParameter()
Tests if
Node.setProperty(String, Value, int) throws a
ConstraintViolationException if the type parameter and the type of the
property do not match. |
void |
SetPropertyAssumeTypeTest.testValues()
Tests if
Node.setProperty(String, Value[], int) if the node
type of this node does not indicate a specific property type, then the
type parameter is used. |
void |
SetPropertyAssumeTypeTest.testValuesAssumeTypeOfValue()
Tests if
Node.setProperty(String, Value[]) if the node type of
this node does not indicate a specific property type, then the property
type of the supplied Value object is used and if the property already
exists (has previously been set) it assumes the new property type. |
void |
SetPropertyAssumeTypeTest.testValuesConstraintViolationExceptionBecauseOfInvalidTypeParameter()
Tests if
Node.setProperty(String, Value[], int) throws a
ConstraintViolationException or ValueFormatException if the type
parameter and the type of the property do not match. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractLockTest.assertLockable(Node n) |
void |
LockManagerTest.testAddLockToken() |
void |
LockManagerTest.testAddLockTokenToAnotherSession() |
void |
LockTest.testCheckedIn()
Test if it is possible to lock and unlock a checked-in node.
|
void |
DeepLockTest.testDeepLockAboveLockedChild() |
void |
LockManagerTest.testGetLockTokens() |
void |
LockManagerTest.testGetLockTokensAfterUnlock() |
void |
LockManagerTest.testGetLockTokensSessionScoped() |
void |
SessionScopedLockTest.testImplicitUnlock()
Test locks are released when session logs out
|
void |
SessionScopedLockTest.testImplicitUnlock2()
Test locks are released when session logs out
|
void |
LockTest.testIsDeep()
Test Lock.isDeep()
|
void |
LockTest.testIsSessionScoped()
Test Lock.isSessionScoped()
|
void |
AbstractLockTest.testLockExpiration()
Test expiration of the lock
|
void |
LockManagerTest.testLockNonLockable() |
void |
LockManagerTest.testLockWithPendingChanges() |
void |
LockManagerTest.testNullOwnerHint() |
void |
AbstractLockTest.testOwnerHint()
Test expiration of the lock
|
void |
DeepLockTest.testParentChildDeepLock() |
void |
AbstractLockTest.testRemoveMixLockableFromLockedNode() |
void |
DeepLockTest.testShallowLockAboveLockedChild() |
void |
AbstractLockTest.testUnlockByOtherSession()
Test
LockManager.unlock(String) for a session that is not
lock owner. |
void |
LockTest.testUnlockSameNameSibling()
Tests if unlocking the first of two locked same-name sibling nodes does
not unlock the second (JIRA issue JCR-284).
|
Modifier and Type | Method and Description |
---|---|
void |
PredefinedNodeTypeTest.testActivity()
Test for the predefined nt:activity node type.
|
void |
PredefinedNodeTypeTest.testBase()
Test for the predefined nt:base node type.
|
void |
CanAddChildNodeCallWithNodeTypeTest.testCanAddAbstractType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns false if nodeTypeName represents an abstract node type. |
void |
CanAddChildNodeCallWithNodeTypeTest.testCanAddMixinType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns false if nodeTypeName represents a mixin. |
void |
PredefinedNodeTypeTest.testChildNodeDef()
Test for the predefined nt:childNodeDef node type.
|
void |
PredefinedNodeTypeTest.testConfiguration()
Test for the predefined nt:configuration node type.
|
void |
CanSetPropertyBinaryTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to BinaryValue.
|
void |
CanSetPropertyBooleanTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to BooleanValue.
|
void |
CanSetPropertyDateTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to DateValue.
|
void |
CanSetPropertyDoubleTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to DoubleValue.
|
void |
CanSetPropertyLongTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to LongValue.
|
void |
CanSetPropertyNameTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to NameValue.
|
void |
CanSetPropertyPathTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to PathValue.
|
void |
CanSetPropertyStringTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertable to StringValue.
|
void |
CanSetPropertyBinaryTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to BinaryValue.
|
void |
CanSetPropertyBooleanTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to
BooleanValue.
|
void |
CanSetPropertyDateTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to DateValue.
|
void |
CanSetPropertyDoubleTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to DoubleValue.
|
void |
CanSetPropertyLongTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to LongValue.
|
void |
CanSetPropertyNameTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to NameValue.
|
void |
CanSetPropertyPathTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to PathValue.
|
void |
CanSetPropertyStringTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to StringValue.
|
void |
CanAddChildNodeCallWithNodeTypeTest.testDefinedAndIllegalType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns false if childNodeName does and nodeTypeName
does not match the NodeDef . |
void |
CanAddChildNodeCallWithNodeTypeTest.testDefinedAndLegalType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns true if childNodeName and nodeTypeName
match the NodeDef . |
void |
CanAddChildNodeCallWithoutNodeTypeTest.testDefinedWithDefault()
Tests if
NodeType.canAddChildNode(String childNodeName) returns
true if NodeType contains a NodeDef named
childNodeName with a default primary type. |
void |
CanAddChildNodeCallWithoutNodeTypeTest.testDefinedWithoutDefault()
Tests if
NodeType.canAddChildNode(String childNodeName) returns
true if NodeType contains a NodeDef named
childNodeName without a default primary type. |
void |
PredefinedNodeTypeTest.testFile()
Test for the predefined nt:file node type.
|
void |
PredefinedNodeTypeTest.testFolder()
Test for the predefined nt:folder node type.
|
void |
PredefinedNodeTypeTest.testFrozenNode()
Test for the predefined nt:frozenNode node type.
|
void |
NodeTypeTest.testGetPrimaryItemName()
Test if node.getPrimaryItemName() returns the same name as
node.getPrimaryItem().getName()
|
void |
NodeTypeTest.testGetPrimaryItemNameNotExisting()
Test if node.getPrimaryItemName() returns null if no primary item is
defined
|
void |
NodeTypeTest.testGetPropertyDefs()
Test if getPropertyDefs() of a primary node returns also "jcr:primaryType"
which is inherited from "nt:base".
|
void |
NodeTypeTest.testGetSupertypes()
Test if getSupertypes() of a primary node that is not "nt:base" returns at
least "nt:base".
|
void |
PredefinedNodeTypeTest.testHierarchyNode()
Test for the predefined nt:hierarchyNode node type.
|
void |
NodeDefTest.testIsMandatory()
This test checks if item definitions with mandatory constraints are
respected.
|
void |
PropertyDefTest.testIsMandatory()
This test checks if item definitions with mandatory constraints are
respected.
|
void |
PredefinedNodeTypeTest.testLifecycle()
Test for the predefined mix:lifecycle node type.
|
void |
PredefinedNodeTypeTest.testLinkedFile()
Test for the predefined nt:linkedFile node type.
|
void |
PredefinedNodeTypeTest.testLockable()
Test for the predefined mix:lockable node type.
|
void |
CanRemoveItemTest.testMandatoryChildNode()
Tests if
NodeType.canRemoveItem(String) and
NodeType.canRemoveNode(String) return
false if the specified node is a mandatory child node. |
void |
CanRemoveItemTest.testMandatoryProperty()
Tests if
NodeType.canRemoveItem(String) and
NodeType.canRemoveProperty(String) return false
if the specified property is a mandatory property. |
void |
PredefinedNodeTypeTest.testMixCreated()
Test for the predefined mix:created node type.
|
void |
PredefinedNodeTypeTest.testMixETag()
Test for the predefined mix:etag node type.
|
void |
PredefinedNodeTypeTest.testMixLanguage()
Test for the predefined mix:language node type.
|
void |
PredefinedNodeTypeTest.testMixLastModified()
Test for the predefined mix:lastModified node type.
|
void |
PredefinedNodeTypeTest.testMixMimeType()
Test for the predefined mix:language node type.
|
void |
PredefinedNodeTypeTest.testMixTitle()
Test for the predefined mix:title node type.
|
void |
CanSetPropertyMultipleTest.testMultipleValuesNull()
Tests if canSetProperty(String propertyName, Value[] values) where values
is null returns the same as canRemoveItem
|
void |
PredefinedNodeTypeTest.testNodeType()
Test for the predefined nt:nodeType node type.
|
void |
PredefinedNodeTypeTest.testNtAddress()
Test for the predefined nt:address node type.
|
void |
PredefinedNodeTypeTest.testPropertyDef()
Test for the predefined nt:propertyDef node type.
|
void |
CanRemoveItemTest.testProtectedChildNode()
Tests if
NodeType.canRemoveItem(String) and
NodeType.canRemoveNode(String) return
false if the specified node is a protected child node. |
void |
CanRemoveItemTest.testProtectedProperty()
Tests if
NodeType.canRemoveItem(String) and
NodeType.canRemoveProperty(String) return false
if the specified property is a protected property. |
void |
PredefinedNodeTypeTest.testQuery()
Test for the predefined nt:query node type.
|
void |
PredefinedNodeTypeTest.testReferenceable()
Test for the predefined mix:referenceable node type.
|
void |
CanRemoveItemTest.testRemovableChildNode()
Tests if
NodeType.canRemoveItem(String) and
NodeType.canRemoveNode(String) return true
if the specified node is not a protected nor a mandatory
child node. |
void |
CanRemoveItemTest.testRemovableProperty()
Tests that
NodeType.canRemoveItem(String) and
NodeType.canRemoveProperty(String) return true
if the specified property is not a protected nor a mandatory
property. |
void |
CanAddChildNodeCallWithNodeTypeTest.testResidualAndIllegalType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns false if childNodeName does not match the NodeDef
and nodeTypeName does not matches the node type of a residual
NodeDef . |
void |
CanAddChildNodeCallWithNodeTypeTest.testResidualAndLegalType()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns true if childNodeName does not match the NodeDef
but nodeTypeName matches the node type of a residual NodeDef . |
void |
CanAddChildNodeCallWithoutNodeTypeTest.testResidualWithDefault()
Tests if
NodeType.canAddChildNode(String childNodeName) returns
true if NodeType contains a residual NodeDef
with a default primary type. |
void |
CanAddChildNodeCallWithoutNodeTypeTest.testResidualWithoutDefault()
Tests if
NodeType.canAddChildNode(String childNodeName) returns
true if NodeType contains a residual NodeDef
without a default primary type. |
void |
PredefinedNodeTypeTest.testResource()
Test for the predefined nt:resource node type.
|
void |
CanSetPropertyTest.testReturnFalseBecauseIsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns false if the property is multiple
|
void |
CanSetPropertyMultipleTest.testReturnFalseBecauseIsNotMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns false if the property is not multiple
|
void |
CanSetPropertyMultipleTest.testReturnFalseBecauseIsProtected()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns false if the property is protected.
|
void |
CanSetPropertyTest.testReturnFalseBecauseIsProtected()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns false if the property is protected.
|
void |
PredefinedNodeTypeTest.testShareable()
Test for the predefined mix:referenceable node type.
|
void |
PredefinedNodeTypeTest.testSimpleVersionable()
Test for the predefined mix:simpleVersionable node type.
|
void |
CanAddChildNodeCallWithNodeTypeTest.testUndefined()
Tests if
NodeType.canAddChildNode(String childNodeName, String nodeTypeName)
returns false if childNodeName does not match the NodeDef . |
void |
CanAddChildNodeCallWithoutNodeTypeTest.testUndefined()
Tests if
NodeType.canAddChildNode(String childNodeName) returns
true if NodeType nor does contain a NodeDef named
childNodeName nor a residual definition. |
void |
PredefinedNodeTypeTest.testUnstructured()
Test for the predefined nt:unstructured node type.
|
void |
CanSetPropertyBinaryTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyBooleanTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyDateTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not match the value constraints of the property def
|
void |
CanSetPropertyDoubleTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satsfy the value constraints of the property def
|
void |
CanSetPropertyLongTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyNameTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyPathTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyStringTest.testValueConstraintNotSatisfied()
Tests if canSetProperty(String propertyName, Value value) returns false
if value does not satisfy the value constraints of the property def
|
void |
CanSetPropertyBinaryTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyBooleanTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyDateTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyDoubleTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyLongTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyNameTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyPathTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyStringTest.testValueConstraintNotSatisfiedMultiple()
Tests if canSetProperty(String propertyName, Value[] values) returns
false if values do not satisfy the value constraints of the property def
|
void |
CanSetPropertyTest.testValueNull()
Tests if canSetProperty(String propertyName, Value value) where value is
null returns the same as canRemoveItem
|
void |
PredefinedNodeTypeTest.testVersion()
Test for the predefined nt:version node type.
|
void |
PredefinedNodeTypeTest.testVersionable()
Test for the predefined mix:versionable node type.
|
void |
PredefinedNodeTypeTest.testVersionedChild()
Test for the predefined nt:versionedChild node type.
|
void |
PredefinedNodeTypeTest.testVersionHistory()
Test for the predefined nt:versionHistory node type.
|
void |
PredefinedNodeTypeTest.testVersionLabels()
Test for the predefined nt:versionLabels node type.
|
Modifier and Type | Method and Description |
---|---|
void |
LockingTest.testAddLockToNode()
Tests if locking a node triggers property added events for the properties
jcr:lockOwner and jcr:lockIsDeep.
|
void |
EventIteratorTest.testGetSize()
Tests if getSize() returns the correct number of events.
|
void |
NodeReorderTest.testNodeReorderAddRemove()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event. |
void |
NodeReorderTest.testNodeReorderMove()
Tests if reordering a child node triggers a
Event.NODE_MOVED
event. |
void |
NodeReorderTest.testNodeReorderSameName()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings. |
void |
NodeReorderTest.testNodeReorderSameNameWithRemove()
Tests if reordering a child node triggers a
Event.NODE_REMOVED
and a Event.NODE_ADDED event with same name siblings. |
void |
EventJournalTest.testPersist() |
void |
PropertyChangedTest.testPropertyRemoveCreate()
Tests if either a
Event.PROPERTY_CHANGED
Event.PROPERTY_REMOVED and Event.PROPERTY_ADDED
is triggered if a property is transiently removed and set again with
the same name but different type and then saved. |
void |
LockingTest.testRemoveLockFromNode()
Tests if unlocking a node triggers property removed events for the
properties jcr:lockOwner and jcr:lockIsDeep.
|
void |
AddEventListenerTest.testUUID()
Tests if events are only generated for specified UUIDs.
|
void |
EventJournalTest.testUUID() |
void |
GetUserDataTest.testVersioning() |
Modifier and Type | Method and Description |
---|---|
protected Query |
AbstractQueryTest.createQuery(Session session,
String statement,
String language)
Creates a
Query for the given statement in the requested
language, treating optional languages gracefully |
protected Query |
AbstractQueryTest.createQuery(org.apache.jackrabbit.test.api.query.Statement statement)
Create a
Query for a given Statement . |
protected Query |
AbstractQueryTest.createQuery(String statement,
String language)
Creates a
Query for the given statement in the requested
language, treating optional languages gracefully |
protected void |
AbstractQueryTest.evaluateResultOrder(QueryResult queryResult,
String propName,
boolean descending)
Checks if the
QueryResult is ordered according order property in
direction of related argument. |
protected QueryResult |
AbstractQueryTest.execute(org.apache.jackrabbit.test.api.query.Statement statement)
Creates and executes a
Query for the given Statement |
protected QueryResult |
AbstractQueryTest.execute(String statement,
String language)
Creates and executes a
Query for a given Statement in a given
query language |
protected void |
AbstractQueryTest.executeSqlQuery(Session session,
String sql,
Node[] expectedNodes)
Executes the
sql query and checks the results against
the specified nodes . |
protected void |
AbstractQueryTest.executeSqlQuery(Session session,
String sql,
Node[] requiredNodes,
Node[] optionalNodes)
Executes the
sql query and checks the results against
the specified nodes . |
protected void |
AbstractQueryTest.executeXPathQuery(Session session,
String xpath,
Node[] expectedNodes)
Executes the
xpath query and checks the results against
the specified nodes . |
protected void |
AbstractQueryLevel2Test.setUpMultiValueTest()
Creates three nodes with names:
AbstractJCRTest.nodeName1 , AbstractJCRTest.nodeName2
and AbstractJCRTest.nodeName3 . |
void |
SQLPathTest.testChildAxisLeaf()
Tests if <somepath>/% AND NOT <somepath>/%/% returns no nodes
if the node at <somepath> is a leaf.
|
void |
SQLPathTest.testChildAxisRoot()
Tests if /% AND NOT /%/% returns the child nodes of the root node.
|
void |
SQLPathTest.testChildAxisTestRoot()
Tests if <somepath>/% AND NOT <somepath>/%/% returns the child
nodes of node at <somepath>.
|
void |
SaveTest.testConstraintViolationException()
Tests if a
ConstraintViolationException is
thrown if a query is stored under a node which does not allow child nodes. |
void |
DerefQueryLevel1Test.testDerefMultiPropWithNodeStar()
Test a deref query on a multi valued reference property with a '*' node.
|
void |
DerefQueryLevel1Test.testDerefMultiPropWithNodeTest()
Test a deref query on a multi valued reference property with a node test.
|
void |
DerefQueryLevel1Test.testDerefSinglePropWithNodeStar()
Test a deref query on a single valued reference property with a '*' node
test.
|
void |
DerefQueryLevel1Test.testDerefSinglePropWithNodeTest()
Test a deref query on a single valued reference property with a node test.
|
void |
SQLPathTest.testDescendantLeaf()
Tests if <somepath>/% returns no nodes if node at <somepath>
is a leaf.
|
void |
SQLPathTest.testDescendantSelfTestRoot()
Tests if <somepath>/%/<nodename> OR <somepath>/<nodename>
returns nodes with name <nodename> which are descendants of
node at
testroot . |
void |
SQLPathTest.testDescendantTestRoot()
Tests if <somepath>/% returns the descendants of <somepath>.
|
void |
ElementTest.testElementTest()
Tests the element test without arguments.
|
void |
ElementTest.testElementTestAnyNode()
Tests the element test with one any node argument.
|
void |
ElementTest.testElementTestAnyNodeNtBase()
Tests the element test with an any node argument and a type argument
that matches all nodes (nt:base).
|
void |
ElementTest.testElementTestAnyNodeSomeNT()
Tests the element test with an any node argument and a type argument
that matches only certain child nodes.
|
void |
ElementTest.testElementTestNameTest()
Tests the element test with one single name test argument.
|
void |
ElementTest.testElementTestNameTestNtBase()
Tests the element test with a name test argument and a type argument that
matches all nodes (nt:base).
|
void |
ElementTest.testElementTestNameTestSomeNT()
Tests the element test with a name test argument and a type argument that
matches only certain child nodes.
|
void |
ElementTest.testElementTestNameTestSomeNTWithSNS()
Tests the element test with a name test argument and a type argument that
matches only certain child nodes.
|
void |
GetPersistentQueryPathTest.testGetPersistentQueryPath()
Tests if
Query.getStoredQueryPath() returns the correct path
where the query had been saved. |
void |
QueryResultNodeIteratorTest.testGetPosition()
Tests the method
NodeIterator.getPosition() . |
void |
QueryResultNodeIteratorTest.testGetPositionEmptyIterator()
Tests the method
NodeIterator.getPosition() on an empty
NodeIterator . |
void |
QueryResultNodeIteratorTest.testGetSize()
Tests if
RangeIterator.getSize() returns the correct
size. |
void |
SaveTest.testItemExistsException()
Tests if an
ItemExistsException is thrown when a query
is stored on an existing node and same name siblings are not allowed. |
void |
SQLJcrPathTest.testJcrPath()
Verify that the jcr:path is present in the query result.
|
void |
XPathJcrPathTest.testJcrPath()
Verify that the jcr:path is present in the query result.
|
void |
SQLJoinTest.testJoin()
Test a SQL query with a primary and mixin nodetype join.
|
void |
SQLJoinTest.testJoinFilterPrimaryType()
Test a SQL query with a primary type and mixin nodetype join.
|
void |
SQLJoinTest.testJoinNtBase()
Test a SQL query with a nt:base primary type and mixin nodetype join.
|
void |
SQLJoinTest.testJoinSNS()
Test a SQL query with a primary and mixin nodetype join on child nodes
with same name siblings.
|
void |
SaveTest.testLockException()
Tests if a
LockException is thrown if a query is
stored under a node locked by another Session . |
void |
QueryResultNodeIteratorTest.testNoSuchElementException()
Tests if a
NoSuchElementException is thrown when NodeIterator.nextNode() is called and there are no more nodes
available. |
void |
SaveTest.testPathNotFoundException()
Tests if a
PathNotFoundException is thrown when a query
is stored to a non existent path. |
void |
SaveTest.testRepositoryException()
Tests if the a
RepositoryException is thrown when
an malformed path is passed in Query.storeAsNode(String) . |
void |
SaveTest.testSave()
Stores a
Query.XPATH query at:
testRoot + "/" + nodeName1 . |
void |
SimpleSelectionTest.testSingleProperty()
Verifies that searching for a property from a single node returns only
one row and has the searched property
|
void |
QueryResultNodeIteratorTest.testSkip()
Tests if
RangeIterator.skip(long) works correctly. |
void |
GetLanguageTest.testSQL()
Tests if a SQL query returns
Query.SQL when calling
Query.getLanguage() . |
void |
TextNodeTest.testTextNodeTest()
Tests if text() node test is equivalent with jcr:xmltext.
|
void |
TextNodeTest.testTextNodeTestContains()
Tests if text() node test is equivalent with jcr:xmltext and jcr:contains
matches content in jcr:xmlcharacters property.
|
void |
TextNodeTest.testTextNodeTestMultiNodes()
Tests if text() node test is equivalent with jcr:xmltext and will select
multiple nodes with name jcr:xmltext.
|
void |
TextNodeTest.testTextNodeTestWithPosition()
Tests text() node test with various position predicates: position(),
first(), last().
|
void |
SaveTest.testVersionException()
Tests if a
VersionException is thrown when a
query is stored under a checked in node. |
Modifier and Type | Method and Description |
---|---|
void |
ChildNodeTest.testChildNodesDoNotMatchSelector() |
void |
SameNodeTest.testChildNodesDoNotMatchSelector() |
void |
DescendantNodeTest.testDescendantNodesDoNotMatchSelector() |
void |
GetQueryTest.testGetQuery() |
void |
LengthTest.testLengthReferenceLiteral() |
void |
LengthTest.testLengthWeakReferenceLiteral() |
void |
BindVariableValueTest.testReference() |
void |
LengthTest.testReferenceLength() |
void |
NodeLocalNameTest.testReferenceLiteral() |
void |
NodeNameTest.testReferenceLiteral() |
void |
BindVariableValueTest.testWeakReference() |
void |
LengthTest.testWeakReferenceLength() |
void |
NodeLocalNameTest.testWeakReferenceLiteral() |
void |
NodeNameTest.testWeakReferenceLiteral() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAccessControlTest.checkCanModifyAc(String path) |
protected void |
AbstractAccessControlTest.checkCanReadAc(String path) |
protected static AccessControlManager |
AbstractAccessControlTest.getAccessControlManager(Session s) |
protected Privilege[] |
AbstractAccessControlTest.privilegesFromName(String privilegeName) |
protected Privilege[] |
AbstractAccessControlTest.privilegesFromNames(String[] privilegeNames) |
void |
AccessControlListTest.testAddAbstractPrivilege() |
void |
AccessControlListTest.testAddAccessControlEntry() |
void |
AccessControlListTest.testAddAccessControlEntryAgain() |
void |
AccessControlListTest.testAddAccessControlEntryAndSetPolicy() |
void |
AccessControlListTest.testAddAccessControlEntryEmptyPrivilegeArray() |
void |
AccessControlListTest.testAddAccessControlEntryInvalidPrincipal() |
void |
AccessControlListTest.testAddAccessControlEntryInvalidPrivilege() |
void |
AccessControlListTest.testAddAccessControlEntryIsTransient() |
void |
AccessControlListTest.testAddAccessControlEntryTwice() |
void |
AccessControlListTest.testAddAggregatedPrivilegesSeparately() |
void |
AccessControlListTest.testAddAggregatePrivilege() |
void |
AccessControlListTest.testAddPrivilegesPresentInEntries() |
void |
AccessControlDiscoveryTest.testAllPrivilege()
Test the jcr:all privilege.
|
void |
AccessControlDiscoveryTest.testAllPrivilegeContainsAll() |
void |
AccessControlPolicyTest.testApplicablePoliciesAreDistinct() |
void |
AccessControlPolicyTest.testApplicablePoliciesAreDistintFromSetPolicies() |
void |
AccessControlListTest.testExtendPrivileges() |
void |
AccessControlListTest.testGetAccessControlEntries() |
void |
AccessControlPolicyTest.testGetApplicablePolicies() |
void |
RSessionAccessControlPolicyTest.testGetApplicablePolicies() |
void |
AccessControlPolicyTest.testGetEffectivePolicies() |
void |
AccessControlPolicyTest.testGetEffectivePoliciesForNonExistingNode() |
void |
AccessControlPolicyTest.testGetEffectivePoliciesForProperty() |
void |
RSessionAccessControlPolicyTest.testGetEffectivePolicy() |
void |
AccessControlPolicyIteratorTest.testGetInitialPosition() |
void |
AccessControlPolicyTest.testGetPolicies() |
void |
RSessionAccessControlPolicyTest.testGetPolicy() |
void |
AccessControlPolicyTest.testGetPolicyAfterSave() |
void |
AccessControlPolicyTest.testGetPolicyAfterSet() |
void |
AccessControlPolicyIteratorTest.testGetPosition() |
void |
AccessControlDiscoveryTest.testGetPrivilegesOnProperty() |
void |
AccessControlPolicyIteratorTest.testGetSize() |
void |
RSessionAccessControlDiscoveryTest.testHasPrivileges() |
void |
AccessControlDiscoveryTest.testHasPrivilegesEmptyArray() |
void |
AccessControlDiscoveryTest.testHasPrivilegesOnProperty() |
void |
AccessControlPolicyTest.testNodeIsModifiedAfterRemovePolicy() |
void |
AccessControlPolicyTest.testNodeIsModifiedAfterSecondSetPolicy() |
void |
AccessControlPolicyTest.testNodeIsModifiedAfterSetPolicy() |
void |
AccessControlDiscoveryTest.testNotHasPrivileges() |
void |
RSessionAccessControlDiscoveryTest.testNotHasPrivileges() |
void |
AccessControlPolicyTest.testNullPolicyOnNewNode() |
void |
AccessControlListTest.testRemoveAccessControlEntry() |
void |
AccessControlListTest.testRemoveAccessControlEntryAndSetPolicy() |
void |
AccessControlListTest.testRemoveAccessControlEntryIsTransient() |
void |
AccessControlListTest.testRemoveAddedAccessControlEntry() |
void |
AccessControlListTest.testRemoveIllegalAccessControlEntry() |
void |
AccessControlPolicyTest.testRemovePolicy() |
void |
AccessControlPolicyTest.testRemovePolicyIsTransient() |
void |
AccessControlPolicyTest.testResetPolicy() |
void |
AccessControlPolicyTest.testSetAllPolicies() |
void |
AccessControlPolicyTest.testSetIllegalPolicy() |
void |
RSessionAccessControlPolicyTest.testSetInvalidPolicy() |
void |
AccessControlPolicyTest.testSetPolicy() |
void |
RSessionAccessControlPolicyTest.testSetPolicy() |
void |
AccessControlPolicyTest.testSetPolicyIsTransient() |
void |
AccessControlPolicyTest.testSetPolicyOnNewNode() |
void |
AccessControlPolicyIteratorTest.testSkip() |
void |
AccessControlDiscoveryTest.testWritePrivilege()
Test the jcr:write privilege.
|
Modifier and Type | Method and Description |
---|---|
protected Node |
AbstractVersionTest.createVersionableNode(Node parent,
String name,
NodeType nodetype)
Create a versionable node below the given parent node.
|
void |
MergeNodeTest.disable_testMergeLocked()
Tests if a
LockException is thrown when merge is called on a
locked node. |
void |
MergeNodeTest.disable_testMergeLockedJcr2()
Tests if a
LockException is thrown when merge is called on a
locked node. |
protected void |
MergeActivityTest.initNodes()
initialize a versionable node on default and second workspace
|
void |
FrozenNodeTest.testFrozenChildUUUID() |
void |
FrozenNodeTest.testFrozenUUUID() |
void |
GetReferencesNodeTest.testGetReferencesNeverFromVersions()
Node.getReferences() never returns a reference that is stored in a
version.
|
void |
RemoveVersionTest.testReferentialIntegrityException()
Checks if
VersionHistory.removeVersion(String)
throws a ReferentialIntegrityException if the named
version is still referenced by another node. |
void |
RemoveVersionTest.testRemoveInvalidVersion()
Test if removing a version from the version history throws a VersionException
if the specified version does not exist.
|
void |
RestoreTest.testRestoreName()
Test the restore of the OPV=Version child nodes.
|
void |
RestoreTest.testRestoreNameJcr2()
Test the restore of the OPV=Version child nodes.
|
void |
OnParentVersionAbortTest.testRestoreNode()
Test the restore of a OnParentVersion-ABORT node
|
void |
OnParentVersionAbortTest.testRestoreNodeJcr2()
Test the restore of a OnParentVersion-ABORT node
|
void |
RestoreTest.testRestoreOrder()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_3()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_4()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_3()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_4()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreRemovesMixin()
Test that after restore(), a subsequently added mixin type is removed
|
void |
RestoreTest.testRestoreWithUUIDConflict()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_3()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_4()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
WorkspaceRestoreTest.testWorkspaceRestoreWithRemoveExisting()
Test if the removeExisting-flag removes an existing node in case of uuid conflict.
|
void |
WorkspaceRestoreTest.testWorkspaceRestoreWithRemoveExistingJcr2()
Test if the removeExisting-flag removes an existing node in case of uuid conflict.
|
void |
WorkspaceRestoreTest.testWorkspaceRestoreWithUUIDConflict()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
WorkspaceRestoreTest.testWorkspaceRestoreWithUUIDConflictJcr2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
Modifier and Type | Method and Description |
---|---|
protected Node |
AbstractVersionTest.createVersionableNode(Node parent,
String name,
NodeType nodetype)
Create a versionable node below the given parent node.
|
void |
FrozenNodeTest.testFrozenChildUUUID() |
void |
FrozenNodeTest.testFrozenUUUID() |
void |
RestoreTest.testRestoreName()
Test the restore of the OPV=Version child nodes.
|
void |
RestoreTest.testRestoreNameJcr2()
Test the restore of the OPV=Version child nodes.
|
void |
RestoreTest.testRestoreOrder()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_3()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2_4()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrder2Jcr2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_3()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2_4()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreOrderJcr2()
Test the child ordering of restored nodes.
|
void |
RestoreTest.testRestoreWithUUIDConflict()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_3()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2_4()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
RestoreTest.testRestoreWithUUIDConflictJcr2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.