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

The test creates a node nodeName1 of type
testNodeType under testRoot, adds a mixin and
then checks it in.

void

WorkspaceCopyBetweenWorkspacesTest.testCopyNodesLocked()
A LockException is thrown if a lock prevents the copy.

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

SessionReadMethodsTest.testGetAttribute()
Tests if getAttribute(String name) returns not null if the requested
attribute is existing

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

The test creates a node nodeName1 of type
testNodeType under testRoot and locks the node
with the superuser session.

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

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

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

SetValueVersionExceptionTest.testNode()
Tests if setValue(Node) throws a VersionException immediately
or on save if the parent node of this property is checked-in.

void

SetValueValueFormatExceptionTest.testNode()
Tests if setValue(Node) throws a ValueFormatException immediately (not
on save) if the property is not of type REFERENCE.

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

NodeRemoveMixinTest.testNotAssigned()
Tests if Node.removeMixin(String mixinName) throws a
NoSuchNodeTypeException Node does not have assigned the
requested mixin

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

Procedure: Creates node 1 and node 2 with session 1
Gets reference to node 1 using session 2 Session 1 moves
node 1 under node 2, saves changes Session 2 modifes node 1,
saves This should work since the modified node is identified
by its UUID, not by position in repository.

Procedure:
Creates node 1 and node 2 with session 1
Gets reference to node 1 using session 2
Session 1 moves node 1 under node 2, saves changes
Session 2 modifes node 1, saves
This should work since the modified node is identified by its UUID, not by position in repository.

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.

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.

CanSetPropertyBinaryTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to BinaryValue.

void

CanSetPropertyNameTest.testConversions()
Tests if NodeType.canSetProperty(String propertyName, Value value)
returns true if value and its type are convertible to NameValue.

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

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

CanSetPropertyNameTest.testConversionsMultiple()
Tests if NodeType.canSetProperty(String propertyName, Value[] values)
returns true if all values and its types are convertible to NameValue.

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

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.

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.

CanSetPropertyBinaryTest.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

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

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

CanSetPropertyNameTest.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

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