org.apache.jackrabbit.test.api.nodetype
Class CanSetPropertyDoubleTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.jackrabbit.test.JUnitTest
              extended byorg.apache.jackrabbit.test.AbstractJCRTest
                  extended byorg.apache.jackrabbit.test.api.nodetype.CanSetPropertyDoubleTest
All Implemented Interfaces:
junit.framework.Test

public class CanSetPropertyDoubleTest
extends AbstractJCRTest

Test of NodeType.canSetProperty(String propertyName, Value value) and NodeType.canSetProperty(String propertyName, Value[] values) where property is of type Double.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testPath, testRoot, testRootNode, workspaceName
 
Fields inherited from class org.apache.jackrabbit.test.JUnitTest
log
 
Constructor Summary
CanSetPropertyDoubleTest()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture for the test cases.
protected  void tearDown()
          Releases the session aquired in setUp().
 void testConversions()
          Tests if NodeType.canSetProperty(String propertyName, Value value) returns true if value and its type are convertible to DoubleValue.
 void testConversionsMultiple()
          Tests if NodeType.canSetProperty(String propertyName, Value[] values) returns true if all values and its types are convertible to DoubleValue.
 void testValueConstraintNotSatisfied()
          Tests if canSetProperty(String propertyName, Value value) returns false if value does not satsfy the value constraints of the property def
 void testValueConstraintNotSatisfiedMultiple()
          Tests if canSetProperty(String propertyName, Value[] values) returns false if values do not satisfy the value constraints of the property def
 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
createRandomString, getNonExistingWorkspaceName, getProperty, getSize, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CanSetPropertyDoubleTest

public CanSetPropertyDoubleTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Sets up the fixture for the test cases.

Overrides:
setUp in class AbstractJCRTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Releases the session aquired in setUp().

Overrides:
tearDown in class AbstractJCRTest
Throws:
java.lang.Exception

testConversions

public void testConversions()
                     throws NotExecutableException,
                            javax.jcr.RepositoryException
Tests if NodeType.canSetProperty(String propertyName, Value value) returns true if value and its type are convertible to DoubleValue.

Throws:
NotExecutableException
javax.jcr.RepositoryException

testConversionsMultiple

public void testConversionsMultiple()
                             throws NotExecutableException,
                                    javax.jcr.RepositoryException
Tests if NodeType.canSetProperty(String propertyName, Value[] values) returns true if all values and its types are convertible to DoubleValue.

Throws:
NotExecutableException
javax.jcr.RepositoryException

testValueConstraintNotSatisfied

public void testValueConstraintNotSatisfied()
                                     throws NotExecutableException,
                                            java.text.ParseException,
                                            javax.jcr.RepositoryException
Tests if canSetProperty(String propertyName, Value value) returns false if value does not satsfy the value constraints of the property def

Throws:
NotExecutableException
java.text.ParseException
javax.jcr.RepositoryException

testValueConstraintNotSatisfiedMultiple

public void testValueConstraintNotSatisfiedMultiple()
                                             throws NotExecutableException,
                                                    java.text.ParseException,
                                                    javax.jcr.RepositoryException
Tests if canSetProperty(String propertyName, Value[] values) returns false if values do not satisfy the value constraints of the property def

Throws:
NotExecutableException
java.text.ParseException
javax.jcr.RepositoryException


Copyright © -2005 . All Rights Reserved.