|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.jackrabbit.test.JUnitTest org.apache.jackrabbit.test.AbstractJCRTest org.apache.jackrabbit.test.api.SetPropertyStringTest
public class SetPropertyStringTest
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 |
---|
public SetPropertyStringTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class AbstractJCRTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractJCRTest
Exception
public void testNewStringPropertySession() throws Exception
Node.setProperty(String,
String)
works with Session.save()
Exception
public void testModifyStringPropertySession() throws Exception
Node.setProperty(String,
String)
works with Session.save()
Exception
public void testNewStringPropertyParent() throws Exception
Node.setProperty(String,
String)
works with parentNode.save()
Exception
public void testModifyStringPropertyParent() throws Exception
Node.setProperty(String,
String)
works with parentNode.save()
Exception
public void testRemoveStringPropertySession() throws Exception
String
property with
Node.setProperty(String, null)
works with
Session.save()
Exception
public void testRemoveStringPropertyParent() throws Exception
String
property with
Node.setProperty(String, null)
works with
parentNode.save()
Exception
public void testNewStringPropertySessionWithPropertyType() throws Exception
Node.setProperty(String,
String, int)
works with Session.save()
Exception
public void testModifyStringPropertySessionWithPropertyType() throws Exception
Node.setProperty(String,
String, int)
works with Session.save()
Exception
public void testNewStringPropertyParentWithPropertyType() throws Exception
Node.setProperty(String,
String, int)
works with parentNode.save()
Exception
public void testModifyStringPropertyParentWithPropertyType() throws Exception
Node.setProperty(String,
String, int)
works with parentNode.save()
Exception
public void testRemoveStringPropertySessionWithPropertyType() throws Exception
String
property with
Node.setProperty(String, null, int)
works with
Session.save()
Exception
public void testRemoveStringPropertyParentWithPropertyType() throws Exception
String
property with
Node.setProperty(String, null, int)
works with
parentNode.save()
Exception
public void testNewStringArrayPropertySession() throws Exception
Node.setProperty(String,
String[])
works with Session.save()
Exception
public void testModifyStringArrayPropertySession() throws Exception
Node.setProperty(String,
String[])
works with Session.save()
Exception
public void testNewStringArrayPropertyParent() throws Exception
Node.setProperty(String,
String[])
works with parentNode.save()
Exception
public void testModifyStringArrayPropertyParent() throws Exception
Node.setProperty(String,
String[])
works with parentNode.save()
Exception
public void testSetSingleStringArrayValueFormatException() throws Exception
Node.setProperty(String, String[])
throws a ValueFormatException
when trying to set an existing
single-valued property to a multi-value
Exception
public void testRemoveStringArrayPropertySession() throws Exception
String[]
property with
Node.setProperty(String, null)
works with
Session.save()
Exception
public void testRemoveStringArrayPropertyParent() throws Exception
String[]
property with
Node.setProperty(String, null)
works with
parentNode.save()
Exception
public void testSetNullStringArray() throws Exception
Node.setProperty(String, String[])
saves an array
of null values as an empty String[]
Exception
public void testNewStringArrayPropertySessionWithPropertyType() throws Exception
Node.setProperty(String, String[],
int)
works with Session.save()
Exception
public void testModifyStringArrayPropertySessionWithPropertyType() throws Exception
Node.setProperty(String,
String[], int)
works with Session.save()
Exception
public void testNewStringArrayPropertyParentWithPropertyType() throws Exception
Node.setProperty(String, String[],
int)
works with parentNode.save()
Exception
public void testModifyStringArrayPropertyParentWithPropertyType() throws Exception
Node.setProperty(String,
String[], int)
works with parentNode.save()
Exception
public void testSetSingleStringArrayValueFormatExceptionWithPropertyType() throws Exception
Node.setProperty(String, String[], int)
throws a
ValueFormatException
when trying to set an existing
single-value property to a multi-value
Exception
public void testRemoveStringArrayPropertySessionWithPropertyType() throws Exception
String[]
property with
Node.setProperty(String, null, int)
works with
Session.save()
Exception
public void testRemoveStringArrayPropertyParentWithPropertyType() throws Exception
String[]
property with
Node.setProperty(String, null, int)
works with
parentNode.save()
Exception
public void testSetNullStringArrayWithPropertyType() throws Exception
Node.setProperty(String, String[], int)
saves an
array of null values as an empty String[]
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |