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
SetValueConstraintViolationExceptionTest
tests 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 void
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 constraintvoid
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 constraintvoid
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 constraintvoid
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 constraintvoid
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 constraintvoid
testMultipleBinaryProperty()
Tests if setValue(Value[] values) where values are of type BinaryValue throw a ConstraintViolationException if the change would violate a value constraintvoid
testMultipleBooleanProperty()
Tests if setValue(Value[] values) where values are of type BooleanValue throw a ConstraintViolationException if the change would violate a value constraintvoid
testMultipleDateProperty()
Tests if setValue(Value[] values) where values are of type DateValue throw a ConstraintViolationException if the change would violate a value constraintvoid
testMultipleDoubleProperty()
Tests if setValue(Value[] values) where values are of type DoubleValue throw a ConstraintViolationException if the change would violate a value constraintvoid
testMultipleLongProperty()
Tests if setValue(Value[] values) where values are of type LongValue throw a ConstraintViolationException if the change would violate a value constraintvoid
testMultipleReferenceProperty()
Tests if setValue(Value[] values) where values are of type ReferenceValue throw a ConstraintViolationException if the change would violate a value constraintvoid
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-
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, RepositoryException
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
-
testBooleanProperty
public void testBooleanProperty() throws NotExecutableException, RepositoryException
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
-
testDateProperty
public void testDateProperty() throws NotExecutableException, RepositoryException
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
-
testDoubleProperty
public void testDoubleProperty() throws NotExecutableException, RepositoryException
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
-
testLongProperty
public void testLongProperty() throws NotExecutableException, RepositoryException
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
-
testReferenceProperty
public void testReferenceProperty() throws NotExecutableException, RepositoryException
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
-
testMultipleBinaryProperty
public void testMultipleBinaryProperty() throws NotExecutableException, RepositoryException
Tests 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, RepositoryException
Tests 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, RepositoryException
Tests 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, RepositoryException
Tests 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, RepositoryException
Tests 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, RepositoryException
Tests if setValue(Value[] values) where values are of type ReferenceValue throw a ConstraintViolationException if the change would violate a value constraint
-
-