org.apache.jackrabbit.test.api
Class SetPropertyStringTest

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.SetPropertyStringTest
All Implemented Interfaces:
junit.framework.Test

public class SetPropertyStringTest
extends AbstractJCRTest

SetPropertyStringTest tests the methods Node.setProperty(String, String), Node.setProperty(String, String[]) and Node.setProperty(String, String[], int)


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
SetPropertyStringTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testModifyStringArrayPropertyParent()
          Tests if modifying properties with Node.setProperty(String, String[]) works with parentNode.save()
 void testModifyStringArrayPropertyParentWithPropertyType()
          Tests if modifying properties with Node.setProperty(String, String[], int) works with parentNode.save()
 void testModifyStringArrayPropertySession()
          Tests if modifying properties with Node.setProperty(String, String[]) works with Session.save()
 void testModifyStringArrayPropertySessionWithPropertyType()
          Tests if modifying properties with Node.setProperty(String, String[], int) works with Session.save()
 void testModifyStringPropertyParent()
          Tests if modifying a property with Node.setProperty(String, String) works with parentNode.save()
 void testModifyStringPropertyParentWithPropertyType()
          Tests if modifying a property with Node.setProperty(String, String, int) works with parentNode.save()
 void testModifyStringPropertySession()
          Tests if modifying a property with Node.setProperty(String, String) works with Session.save()
 void testModifyStringPropertySessionWithPropertyType()
          Tests if modifying a property with Node.setProperty(String, String, int) works with Session.save()
 void testNewStringArrayPropertyParent()
          Tests if adding properties with Node.setProperty(String, String[]) works with parentNode.save()
 void testNewStringArrayPropertyParentWithPropertyType()
          Tests if adding properties with Node.setProperty(String, String[], int) works with parentNode.save()
 void testNewStringArrayPropertySession()
          Tests if adding properties with Node.setProperty(String, String[]) works with Session.save()
 void testNewStringArrayPropertySessionWithPropertyType()
          Tests if adding properties with Node.setProperty(String, String[], int) works with Session.save()
 void testNewStringPropertyParent()
          Tests if adding a property with Node.setProperty(String, String) works with parentNode.save()
 void testNewStringPropertyParentWithPropertyType()
          Tests if adding a property with Node.setProperty(String, String, int) works with parentNode.save()
 void testNewStringPropertySession()
          Tests if adding a property with Node.setProperty(String, String) works with Session.save()
 void testNewStringPropertySessionWithPropertyType()
          Tests if adding a property with Node.setProperty(String, String, int) works with Session.save()
 void testRemoveStringArrayPropertyParent()
          Tests if removing a String[] property with Node.setProperty(String, null) works with parentNode.save()
 void testRemoveStringArrayPropertyParentWithPropertyType()
          Tests if removing a String[] property with Node.setProperty(String, null, int) works with parentNode.save()
 void testRemoveStringArrayPropertySession()
          Tests if removing a String[] property with Node.setProperty(String, null) works with Session.save()
 void testRemoveStringArrayPropertySessionWithPropertyType()
          Tests if removing a String[] property with Node.setProperty(String, null, int) works with Session.save()
 void testRemoveStringPropertyParent()
          Tests if removing a String property with Node.setProperty(String, null) works with parentNode.save()
 void testRemoveStringPropertyParentWithPropertyType()
          Tests if removing a String property with Node.setProperty(String, null, int) works with parentNode.save()
 void testRemoveStringPropertySession()
          Tests if removing a String property with Node.setProperty(String, null) works with Session.save()
 void testRemoveStringPropertySessionWithPropertyType()
          Tests if removing a String property with Node.setProperty(String, null, int) works with Session.save()
 void testSetNullStringArray()
          Tests if Node.setProperty(String, String[]) saves an array of null values as an empty String[]
 void testSetNullStringArrayWithPropertyType()
          Tests if Node.setProperty(String, String[], int) saves an array of null values as an empty String[]
 void testSetSingleStringArrayValueFormatException()
          Tests if Node.setProperty(String, String[]) throws a ValueFormatException when trying to set an existing single-valued property to a multi-value
 void testSetSingleStringArrayValueFormatExceptionWithPropertyType()
          Tests if Node.setProperty(String, String[], int) throws a ValueFormatException when trying to set an existing single-value property to a multi-value
 
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

SetPropertyStringTest

public SetPropertyStringTest()
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

testNewStringPropertySession

public void testNewStringPropertySession()
                                  throws Exception
Tests if adding a property with Node.setProperty(String, String) works with Session.save()

Throws:
Exception

testModifyStringPropertySession

public void testModifyStringPropertySession()
                                     throws Exception
Tests if modifying a property with Node.setProperty(String, String) works with Session.save()

Throws:
Exception

testNewStringPropertyParent

public void testNewStringPropertyParent()
                                 throws Exception
Tests if adding a property with Node.setProperty(String, String) works with parentNode.save()

Throws:
Exception

testModifyStringPropertyParent

public void testModifyStringPropertyParent()
                                    throws Exception
Tests if modifying a property with Node.setProperty(String, String) works with parentNode.save()

Throws:
Exception

testRemoveStringPropertySession

public void testRemoveStringPropertySession()
                                     throws Exception
Tests if removing a String property with Node.setProperty(String, null) works with Session.save()

Throws:
Exception

testRemoveStringPropertyParent

public void testRemoveStringPropertyParent()
                                    throws Exception
Tests if removing a String property with Node.setProperty(String, null) works with parentNode.save()

Throws:
Exception

testNewStringPropertySessionWithPropertyType

public void testNewStringPropertySessionWithPropertyType()
                                                  throws Exception
Tests if adding a property with Node.setProperty(String, String, int) works with Session.save()

Throws:
Exception

testModifyStringPropertySessionWithPropertyType

public void testModifyStringPropertySessionWithPropertyType()
                                                     throws Exception
Tests if modifying a property with Node.setProperty(String, String, int) works with Session.save()

Throws:
Exception

testNewStringPropertyParentWithPropertyType

public void testNewStringPropertyParentWithPropertyType()
                                                 throws Exception
Tests if adding a property with Node.setProperty(String, String, int) works with parentNode.save()

Throws:
Exception

testModifyStringPropertyParentWithPropertyType

public void testModifyStringPropertyParentWithPropertyType()
                                                    throws Exception
Tests if modifying a property with Node.setProperty(String, String, int) works with parentNode.save()

Throws:
Exception

testRemoveStringPropertySessionWithPropertyType

public void testRemoveStringPropertySessionWithPropertyType()
                                                     throws Exception
Tests if removing a String property with Node.setProperty(String, null, int) works with Session.save()

Throws:
Exception

testRemoveStringPropertyParentWithPropertyType

public void testRemoveStringPropertyParentWithPropertyType()
                                                    throws Exception
Tests if removing a String property with Node.setProperty(String, null, int) works with parentNode.save()

Throws:
Exception

testNewStringArrayPropertySession

public void testNewStringArrayPropertySession()
                                       throws Exception
Tests if adding properties with Node.setProperty(String, String[]) works with Session.save()

Throws:
Exception

testModifyStringArrayPropertySession

public void testModifyStringArrayPropertySession()
                                          throws Exception
Tests if modifying properties with Node.setProperty(String, String[]) works with Session.save()

Throws:
Exception

testNewStringArrayPropertyParent

public void testNewStringArrayPropertyParent()
                                      throws Exception
Tests if adding properties with Node.setProperty(String, String[]) works with parentNode.save()

Throws:
Exception

testModifyStringArrayPropertyParent

public void testModifyStringArrayPropertyParent()
                                         throws Exception
Tests if modifying properties with Node.setProperty(String, String[]) works with parentNode.save()

Throws:
Exception

testSetSingleStringArrayValueFormatException

public void testSetSingleStringArrayValueFormatException()
                                                  throws Exception
Tests if Node.setProperty(String, String[]) throws a ValueFormatException when trying to set an existing single-valued property to a multi-value

Throws:
Exception

testRemoveStringArrayPropertySession

public void testRemoveStringArrayPropertySession()
                                          throws Exception
Tests if removing a String[] property with Node.setProperty(String, null) works with Session.save()

Throws:
Exception

testRemoveStringArrayPropertyParent

public void testRemoveStringArrayPropertyParent()
                                         throws Exception
Tests if removing a String[] property with Node.setProperty(String, null) works with parentNode.save()

Throws:
Exception

testSetNullStringArray

public void testSetNullStringArray()
                            throws Exception
Tests if Node.setProperty(String, String[]) saves an array of null values as an empty String[]

Throws:
Exception

testNewStringArrayPropertySessionWithPropertyType

public void testNewStringArrayPropertySessionWithPropertyType()
                                                       throws Exception
Tests if adding properties with Node.setProperty(String, String[], int) works with Session.save()

Throws:
Exception

testModifyStringArrayPropertySessionWithPropertyType

public void testModifyStringArrayPropertySessionWithPropertyType()
                                                          throws Exception
Tests if modifying properties with Node.setProperty(String, String[], int) works with Session.save()

Throws:
Exception

testNewStringArrayPropertyParentWithPropertyType

public void testNewStringArrayPropertyParentWithPropertyType()
                                                      throws Exception
Tests if adding properties with Node.setProperty(String, String[], int) works with parentNode.save()

Throws:
Exception

testModifyStringArrayPropertyParentWithPropertyType

public void testModifyStringArrayPropertyParentWithPropertyType()
                                                         throws Exception
Tests if modifying properties with Node.setProperty(String, String[], int) works with parentNode.save()

Throws:
Exception

testSetSingleStringArrayValueFormatExceptionWithPropertyType

public void testSetSingleStringArrayValueFormatExceptionWithPropertyType()
                                                                  throws Exception
Tests if Node.setProperty(String, String[], int) throws a ValueFormatException when trying to set an existing single-value property to a multi-value

Throws:
Exception

testRemoveStringArrayPropertySessionWithPropertyType

public void testRemoveStringArrayPropertySessionWithPropertyType()
                                                          throws Exception
Tests if removing a String[] property with Node.setProperty(String, null, int) works with Session.save()

Throws:
Exception

testRemoveStringArrayPropertyParentWithPropertyType

public void testRemoveStringArrayPropertyParentWithPropertyType()
                                                         throws Exception
Tests if removing a String[] property with Node.setProperty(String, null, int) works with parentNode.save()

Throws:
Exception

testSetNullStringArrayWithPropertyType

public void testSetNullStringArrayWithPropertyType()
                                            throws Exception
Tests if Node.setProperty(String, String[], int) saves an array of null values as an empty String[]

Throws:
Exception


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