org.apache.jackrabbit.test.api
Class SetValueStringTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jackrabbit.test.JUnitTest
              extended by org.apache.jackrabbit.test.AbstractJCRTest
                  extended by org.apache.jackrabbit.test.api.SetValueStringTest
All Implemented Interfaces:
junit.framework.Test

public class SetValueStringTest
extends AbstractJCRTest

Tests the various Property.setValue(Value) methods.

Configuration requirements:
The node at AbstractJCRTest.testRoot must allow a child node of type AbstractJCRTest.testNodeType with name AbstractJCRTest.nodeName1. The node type AbstractJCRTest.testNodeType must define a single value string property with name AbstractJCRTest.propertyName1 and a multi value string property with name AbstractJCRTest.propertyName2.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrFrozenUuid, 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, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName
 
Fields inherited from class org.apache.jackrabbit.test.JUnitTest
log
 
Constructor Summary
SetValueStringTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testEmptyMultiStringParent()
          Test the assignment of an empty property by assigning it a null array, saved from the parent Node
 void testEmptyMultiStringSession()
          Test the assignment of an empty property by assigning it a null array, saved from the Session
 void testMultiString()
          Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value String (mv)
 void testMultiStringParent()
          Test the persistence of a property modified with an multi-value String parameter and saved from the parent Node Requires a multi-value String (mv)
 void testMultiStringSession()
          Test the persistence of a property modified with an multi-value String parameter and saved from the Session Requires a multi-value String (mv)
 void testMultiStringSingle()
          Test the assignment of a single-value to a multi-value property Requires a single-value String (PROP_VALUE_1)
 void testMultiValue()
          Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value Value (mv)
 void testMultiValueParent()
          Test the persistence of a property modified with an multi-value Value parameter and saved from the parent Node Requires a multi-value Value (mv2)
 void testMultiValueSession()
          Test the persistence of a property modified with an multi-value Value parameter and saved from the Session Requires a multi-value Value (mv2)
 void testMultiValueSingle()
          Test the assignment of a single-value to a multi-value property Requires a single-value Value (sv1)
 void testNullMultiValue()
          Test the deletion of a value in a multi-value property
 void testRemoveMultiStringParent()
          Test the deletion of a property by assigning it a null value, saved from the parent Node
 void testRemoveMultiStringSession()
          Test the deletion of a property by assigning it a null value, saved from the Session
 void testRemoveMultiValueParent()
          Test the deletion of a property by assigning it a null value, saved from the parent Node
 void testRemoveMultiValueSession()
          Test the deletion of a property by assigning it a null value, saved from the Session
 void testRemoveStringParent()
          Test the deletion of a property by assigning it a null value, saved from the parent Node
 void testRemoveStringSession()
          Test the deletion of a property by assigning it a null value, saved from the Session
 void testRemoveValueParent()
          Test the deletion of a property by assigning it a null value, saved from the parent Node
 void testRemoveValueSession()
          Test the deletion of a property by assigning it a null value, saved from the Session
 void testStringParent()
          Test the persistence of a property modified with a String parameter and saved from the parent Node Requires a single-value String (PROP_VALUE_2)
 void testStringSession()
          Test the persistence of a property modified with a String parameter and saved from the Session Requires a single-value String (PROP_VALUE_2)
 void testValueParent()
          Test the persistence of a property modified with a Value parameter, and saved from the parent Node Requires a single-value Value (sv2)
 void testValueSession()
          Test the persistence of a property modified with a Value parameter and saved from the Session Requires a single-value Value (sv2)
 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, getProperty, getSize, isSupported, needsMixin, 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

SetValueStringTest

public SetValueStringTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractJCRTest
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class AbstractJCRTest
Throws:
Exception

testValueSession

public void testValueSession()
                      throws RepositoryException
Test the persistence of a property modified with a Value parameter and saved from the Session Requires a single-value Value (sv2)

Throws:
RepositoryException

testValueParent

public void testValueParent()
                     throws RepositoryException
Test the persistence of a property modified with a Value parameter, and saved from the parent Node Requires a single-value Value (sv2)

Throws:
RepositoryException

testMultiValue

public void testMultiValue()
                    throws RepositoryException
Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value Value (mv)

Throws:
RepositoryException

testRemoveValueSession

public void testRemoveValueSession()
                            throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the Session

Throws:
RepositoryException

testRemoveValueParent

public void testRemoveValueParent()
                           throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the parent Node

Throws:
RepositoryException

testStringSession

public void testStringSession()
                       throws RepositoryException
Test the persistence of a property modified with a String parameter and saved from the Session Requires a single-value String (PROP_VALUE_2)

Throws:
RepositoryException

testStringParent

public void testStringParent()
                      throws RepositoryException
Test the persistence of a property modified with a String parameter and saved from the parent Node Requires a single-value String (PROP_VALUE_2)

Throws:
RepositoryException

testMultiString

public void testMultiString()
                     throws RepositoryException
Test the modification of a single-value property updated with a multi-value parameter Requires a multi-value String (mv)

Throws:
RepositoryException

testRemoveStringSession

public void testRemoveStringSession()
                             throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the Session

Throws:
RepositoryException

testRemoveStringParent

public void testRemoveStringParent()
                            throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the parent Node

Throws:
RepositoryException

testMultiValueSession

public void testMultiValueSession()
                           throws RepositoryException
Test the persistence of a property modified with an multi-value Value parameter and saved from the Session Requires a multi-value Value (mv2)

Throws:
RepositoryException

testMultiValueParent

public void testMultiValueParent()
                          throws RepositoryException
Test the persistence of a property modified with an multi-value Value parameter and saved from the parent Node Requires a multi-value Value (mv2)

Throws:
RepositoryException

testMultiValueSingle

public void testMultiValueSingle()
                          throws RepositoryException
Test the assignment of a single-value to a multi-value property Requires a single-value Value (sv1)

Throws:
RepositoryException

testRemoveMultiValueSession

public void testRemoveMultiValueSession()
                                 throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the Session

Throws:
RepositoryException

testRemoveMultiValueParent

public void testRemoveMultiValueParent()
                                throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the parent Node

Throws:
RepositoryException

testNullMultiValue

public void testNullMultiValue()
                        throws RepositoryException
Test the deletion of a value in a multi-value property

Throws:
RepositoryException

testMultiStringSession

public void testMultiStringSession()
                            throws RepositoryException
Test the persistence of a property modified with an multi-value String parameter and saved from the Session Requires a multi-value String (mv)

Throws:
RepositoryException

testMultiStringParent

public void testMultiStringParent()
                           throws RepositoryException
Test the persistence of a property modified with an multi-value String parameter and saved from the parent Node Requires a multi-value String (mv)

Throws:
RepositoryException

testMultiStringSingle

public void testMultiStringSingle()
                           throws RepositoryException
Test the assignment of a single-value to a multi-value property Requires a single-value String (PROP_VALUE_1)

Throws:
RepositoryException

testRemoveMultiStringSession

public void testRemoveMultiStringSession()
                                  throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the Session

Throws:
RepositoryException

testRemoveMultiStringParent

public void testRemoveMultiStringParent()
                                 throws RepositoryException
Test the deletion of a property by assigning it a null value, saved from the parent Node

Throws:
RepositoryException

testEmptyMultiStringParent

public void testEmptyMultiStringParent()
                                throws RepositoryException
Test the assignment of an empty property by assigning it a null array, saved from the parent Node

Throws:
RepositoryException

testEmptyMultiStringSession

public void testEmptyMultiStringSession()
                                 throws RepositoryException
Test the assignment of an empty property by assigning it a null array, saved from the Session

Throws:
RepositoryException


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.