Package org.apache.jackrabbit.test.api
Class SetValueConstraintViolationExceptionTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.jackrabbit.test.JUnitTest
-
- org.apache.jackrabbit.test.AbstractJCRTest
-
- org.apache.jackrabbit.test.api.SetValueConstraintViolationExceptionTest
-
- All Implemented Interfaces:
junit.framework.Test
public class SetValueConstraintViolationExceptionTest extends AbstractJCRTest
SetValueConstraintViolationExceptionTesttests if setValue() throws a ConstraintViolationException either immediately (by setValue()) or on save, if the change would violate a value constraint.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName
-
-
Constructor Summary
Constructors Constructor Description SetValueConstraintViolationExceptionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestBinaryProperty()Tests if setValue(InputStream value) and setValue(Value value) where value is a BinaryValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestBooleanProperty()Tests if setValue(boolean value) and setValue(Value value) where value is a BooleanValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestDateProperty()Tests if setValue(Calendar value) and setValue(Value value) where value is a DateValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestDoubleProperty()Tests if setValue(Double value) and setValue(Value value) where value is a DoubleValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestLongProperty()Tests if setValue(Long value) and setValue(Value value) where value is a LongValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleBinaryProperty()Tests if setValue(Value[] values) where values are of type BinaryValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleBooleanProperty()Tests if setValue(Value[] values) where values are of type BooleanValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleDateProperty()Tests if setValue(Value[] values) where values are of type DateValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleDoubleProperty()Tests if setValue(Value[] values) where values are of type DoubleValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleLongProperty()Tests if setValue(Value[] values) where values are of type LongValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestMultipleReferenceProperty()Tests if setValue(Value[] values) where values are of type ReferenceValue throw a ConstraintViolationException if the change would violate a value constraintvoidtestReferenceProperty()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-
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run, setUp, tearDown
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
testBinaryProperty
public void testBinaryProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(InputStream value) and setValue(Value value) where value is a BinaryValue throw a ConstraintViolationException if the change would violate a value constraint
-
testBooleanProperty
public void testBooleanProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(boolean value) and setValue(Value value) where value is a BooleanValue throw a ConstraintViolationException if the change would violate a value constraint
-
testDateProperty
public void testDateProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Calendar value) and setValue(Value value) where value is a DateValue throw a ConstraintViolationException if the change would violate a value constraint
-
testDoubleProperty
public void testDoubleProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Double value) and setValue(Value value) where value is a DoubleValue throw a ConstraintViolationException if the change would violate a value constraint
-
testLongProperty
public void testLongProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Long value) and setValue(Value value) where value is a LongValue throw a ConstraintViolationException if the change would violate a value constraint
-
testReferenceProperty
public void testReferenceProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Node value) and setValue(Value value) where value is a ReferenceValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleBinaryProperty
public void testMultipleBinaryProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type BinaryValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleBooleanProperty
public void testMultipleBooleanProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type BooleanValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleDateProperty
public void testMultipleDateProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type DateValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleDoubleProperty
public void testMultipleDoubleProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type DoubleValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleLongProperty
public void testMultipleLongProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type LongValue throw a ConstraintViolationException if the change would violate a value constraint
-
testMultipleReferenceProperty
public void testMultipleReferenceProperty() throws NotExecutableException, RepositoryExceptionTests if setValue(Value[] values) where values are of type ReferenceValue throw a ConstraintViolationException if the change would violate a value constraint
-
-