|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
org.alfresco.util.BaseSpringTest
org.alfresco.repo.node.BaseNodeServiceTest
public abstract class BaseNodeServiceTest
Provides a base set of tests of the various NodeService
implementations.
To test a specific incarnation of the service, the methods #getStoreService()
and
BaseNodeServiceTest.getNodeService()
must be implemented.
BaseNodeServiceTest.nodeService
,
BaseNodeServiceTest.rootNodeRef
,
BaseNodeServiceTest.buildNodeGraph()
Nested Class Summary | |
---|---|
static class |
BaseNodeServiceTest.BadOnDeleteNodePolicy
|
static class |
BaseNodeServiceTest.MovePolicyTester
|
static class |
BaseNodeServiceTest.TestEnum
|
Field Summary | |
---|---|
static org.alfresco.service.namespace.QName |
ASPECT_QNAME_MANDATORY
|
static org.alfresco.service.namespace.QName |
ASPECT_QNAME_TEST_MARKER
|
static org.alfresco.service.namespace.QName |
ASPECT_QNAME_TEST_MARKER2
|
static org.alfresco.service.namespace.QName |
ASPECT_QNAME_TEST_TITLED
|
static org.alfresco.service.namespace.QName |
ASPECT_QNAME_WITH_DEFAULT_VALUE
|
static org.alfresco.service.namespace.QName |
ASPECT_WITH_ASSOCIATIONS
|
static org.alfresco.service.namespace.QName |
ASPECT_WITH_ASSOCIATIONS_EXTRA
|
static org.alfresco.service.namespace.QName |
ASPECT_WITH_ENCRYPTED
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_CHILD_ASSOC
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_CHILD_ASSOC_01
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_CHILD_ASSOC_02
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_NORMAL_ASSOC
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_NORMAL_ASSOC_01
|
static org.alfresco.service.namespace.QName |
ASSOC_ASPECT_NORMAL_ASSOC_02
|
static org.alfresco.service.namespace.QName |
ASSOC_TYPE_QNAME_TEST_CHILDREN
|
static org.alfresco.service.namespace.QName |
ASSOC_TYPE_QNAME_TEST_CONTAINS
|
static org.alfresco.service.namespace.QName |
ASSOC_TYPE_QNAME_TEST_NEXT
|
protected AuthenticationComponent |
authenticationComponent
|
static boolean |
behaviourExecuted
|
static java.lang.String |
DEFAULT_VALUE
|
protected org.hibernate.dialect.Dialect |
dialect
|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService
|
protected MetadataEncryptor |
metadataEncryptor
|
static java.lang.String |
NAMESPACE
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
|
static java.lang.String |
NOT_DEFAULT_VALUE
|
protected PolicyComponent |
policyComponent
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_ANY_PROP_MULTIPLE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_ANY_PROP_SINGLE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_BOOLEAN_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_CATEGORY_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_CONTENT_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_DATE_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_DOUBLE_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_ENCRYPTED_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_FLOAT_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_INTEGER_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_LOCALE_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_LONG_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_MARKER_PROP
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_ML_TEXT_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_MULTI_ML_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_MULTI_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_NODEREF_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_NULL_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_PATH_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_PERIOD_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_PROP1
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_PROP2
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_QNAME_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_SERIALIZABLE_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_STRING_PROP_MULTIPLE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_STRING_PROP_SINGLE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_STRING_VALUE
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_TEST_CONTENT
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_TEST_DESCRIPTION
|
static org.alfresco.service.namespace.QName |
PROP_QNAME_TEST_TITLE
|
protected RetryingTransactionHelper |
retryingTransactionHelper
|
protected org.alfresco.service.cmr.repository.NodeRef |
rootNodeRef
populated during setup |
static java.lang.String |
TEST_PREFIX
|
protected TransactionService |
transactionService
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_EXTENDED_CONTENT
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST_CONTENT
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST_MANY_ML_PROPERTIES
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST_MANY_PROPERTIES
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST_MANY_PROPERTIES_ENCRYPTED
|
static org.alfresco.service.namespace.QName |
TYPE_QNAME_TEST_MULTIPLE_TESTER
|
Fields inherited from class org.alfresco.util.BaseSpringTest |
---|
sessionFactory |
Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
---|
jdbcTemplate |
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
---|
transactionDefinition, transactionManager, transactionStatus |
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
---|
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
---|
applicationContext |
Fields inherited from class org.springframework.test.ConditionalTestCase |
---|
logger |
Constructor Summary | |
---|---|
BaseNodeServiceTest()
|
Method Summary | |
---|---|
java.util.Map |
buildNodeGraph()
|
static java.util.Map |
buildNodeGraph(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
Builds a graph of child associations as follows: |
protected void |
fillProperties(org.alfresco.service.namespace.QName qname,
java.util.Map properties)
Fills the given property map with some values according to the property definitions on the given class |
protected void |
getExpectedPropertyValues(java.util.Map checkProperties)
Apply any changes to the PROP_QNAME_XXX_VALUE used for checking the following: |
protected abstract org.alfresco.service.cmr.repository.NodeService |
getNodeService()
Usually just implemented by fetching the bean directly from the bean factory, for example: |
static org.alfresco.service.cmr.dictionary.DictionaryService |
loadModel(org.springframework.context.ApplicationContext applicationContext)
Loads the test model required for building the node graphs |
protected void |
onSetUpInTransaction()
|
protected void |
onTearDownInTransaction()
|
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
|
void |
testAddBogusChild()
|
void |
testAddChild()
|
void |
testAddProperties()
|
void |
testAR1303()
|
void |
testAR1414()
Check that Serializable properties do not remain connected to the L1 session |
void |
testAR782()
Checks that unconvertable property values cannot be persisted. |
void |
testAspectRemoval()
|
void |
testAspectRemovalCascadeDelete()
Test ALFCOM-2299 |
void |
testAspects()
Checks that aspects can be added, removed and queried. |
void |
testAspectsAddedAutomatically()
|
void |
testAspectWithChildAssociationsCreationAndRetrieval()
|
void |
testBigCollections()
Checks that large collections can be persisted |
void |
testCascadeDelete()
|
void |
testCreateAndRemoveAssociation()
|
void |
testCreateNode()
|
void |
testCreateNodeNoProperties()
|
void |
testCreateNodeWithId()
Tests node creation with a pre-determined uuid . |
void |
testCreateNodeWithProperties()
|
void |
testCreateStore()
|
void |
testCreateWithTooLongPathLocalname()
|
void |
testDefaultPropertyOverride_AddAspect()
|
void |
testDefaultPropertyOverride_CreateNode()
|
void |
testDefaultPropertyOverride_SpecializeWithoutProperty()
|
void |
testDefaultPropertyOverride_SpecializeWithProperty()
|
void |
testDefaultValues()
Test that default values are set when nodes are created and aspects applied |
void |
testDelete()
|
void |
testDeleteAndAddSameName()
Checks that the unique constraint doesn't break delete and create within the same transaction. |
void |
testDeleteStore()
|
void |
testDeleteWithBadlyBehavedBeforeDeletePolicies()
This test is similar to the test above but beforeDelete does nasty stuff such as creating children of the soon to be deleted children. |
void |
testDeleteWithBadlyBehavedOnDeletePolicies()
This test is similar to the test above but onDelete does nasty stuff such as creating siblings of the soon to be deleted children. |
void |
testDuplicateAssociationDetection()
|
void |
testDuplicateAssocsWithoutSuppliedName()
Create some nodes that have the no cm:name and use associations that enforce uniqueness. |
void |
testDuplicateCatch()
Check that the duplicate child name is detected and thrown correctly |
void |
testDuplicateChildAssocCleanup()
|
void |
testEmptyCollections()
Checks that empty collections can be persisted |
void |
testEncryptedProperties()
Check that d:encrypted properties work correctly. |
void |
testEncryptionAndDecryptionOfProperties()
|
void |
testExists()
|
void |
testGetByName()
|
void |
testGetChildAssocs()
|
void |
testGetChildAssocsByChildType()
|
void |
testGetNodeRefById()
|
void |
testGetParentAssocs()
|
void |
testGetPath()
|
void |
testGetPaths()
|
void |
testGetReferencableProperties()
Checks that the referencable properties
are present |
void |
testGetRootNode()
|
void |
testGetSourceAssocs()
|
void |
testGetStores()
|
void |
testGetTargetAssocs()
|
void |
testGetType()
|
void |
testGetUnknownProperty()
Makes a read-only transaction and then looks for a property using a non-existent QName. |
void |
testLargeStrings()
|
void |
testLocalizedAspect()
|
void |
testMandatoryAspects()
|
void |
testMoveNode()
|
void |
testMultiProp()
|
void |
testMultivaluedSerializable()
Ensures that d:any types are handled correctly when adding values |
void |
testMultiValueMLTextProperties()
|
void |
testNonDuplicateAssocsWithSuppliedName()
Create some nodes that have the same cm:name but use associations that don't enforce uniqueness. |
void |
testPrimaryPathCascadeDelete()
|
void |
testProperties()
|
void |
testPropertyLocaleBehaviour()
|
void |
testPropertyTypes()
Check that properties go in and come out in the correct format. |
void |
testReferencePropertySet()
|
void |
testRemoveChildByRef()
|
void |
testRemoveProperty()
|
void |
testRemoveSpecificChild()
|
void |
testSerializableProperties()
Ensures that the type you get out of a d:any property is the type that you put in. |
void |
testSetType()
|
void |
testSetUp()
|
void |
testTargetAssoc_Ordering()
|
Methods inherited from class org.alfresco.util.BaseSpringTest |
---|
flushAndClear, getConfigLocations, getSession, loadContext, setSessionFactory |
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
---|
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding |
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
---|
endTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
---|
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
---|
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown |
Methods inherited from class org.springframework.test.AbstractSpringContextTests |
---|
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty |
Methods inherited from class org.springframework.test.ConditionalTestCase |
---|
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMESPACE
public static final java.lang.String TEST_PREFIX
public static final java.lang.String DEFAULT_VALUE
public static final java.lang.String NOT_DEFAULT_VALUE
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST_CONTENT
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST_MANY_PROPERTIES
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST_MANY_PROPERTIES_ENCRYPTED
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST_MANY_ML_PROPERTIES
public static final org.alfresco.service.namespace.QName TYPE_QNAME_EXTENDED_CONTENT
public static final org.alfresco.service.namespace.QName ASPECT_QNAME_TEST_TITLED
public static final org.alfresco.service.namespace.QName ASPECT_QNAME_TEST_MARKER
public static final org.alfresco.service.namespace.QName ASPECT_QNAME_TEST_MARKER2
public static final org.alfresco.service.namespace.QName ASPECT_QNAME_MANDATORY
public static final org.alfresco.service.namespace.QName ASPECT_QNAME_WITH_DEFAULT_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_TEST_TITLE
public static final org.alfresco.service.namespace.QName PROP_QNAME_TEST_DESCRIPTION
public static final org.alfresco.service.namespace.QName PROP_QNAME_TEST_CONTENT
public static final org.alfresco.service.namespace.QName PROP_QNAME_BOOLEAN_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_INTEGER_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_LONG_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_FLOAT_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_DOUBLE_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_STRING_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_ML_TEXT_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_DATE_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_SERIALIZABLE_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_NODEREF_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_QNAME_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_CONTENT_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_PATH_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_CATEGORY_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_LOCALE_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_NULL_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_MULTI_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_PERIOD_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_MULTI_ML_VALUE
public static final org.alfresco.service.namespace.QName PROP_QNAME_MARKER_PROP
public static final org.alfresco.service.namespace.QName PROP_QNAME_PROP1
public static final org.alfresco.service.namespace.QName PROP_QNAME_PROP2
public static final org.alfresco.service.namespace.QName ASSOC_TYPE_QNAME_TEST_CHILDREN
public static final org.alfresco.service.namespace.QName ASSOC_TYPE_QNAME_TEST_CONTAINS
public static final org.alfresco.service.namespace.QName ASSOC_TYPE_QNAME_TEST_NEXT
public static final org.alfresco.service.namespace.QName ASPECT_WITH_ASSOCIATIONS
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_CHILD_ASSOC
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_NORMAL_ASSOC
public static final org.alfresco.service.namespace.QName ASPECT_WITH_ASSOCIATIONS_EXTRA
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_CHILD_ASSOC_01
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_CHILD_ASSOC_02
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_NORMAL_ASSOC_01
public static final org.alfresco.service.namespace.QName ASSOC_ASPECT_NORMAL_ASSOC_02
public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST_MULTIPLE_TESTER
public static final org.alfresco.service.namespace.QName PROP_QNAME_STRING_PROP_SINGLE
public static final org.alfresco.service.namespace.QName PROP_QNAME_STRING_PROP_MULTIPLE
public static final org.alfresco.service.namespace.QName PROP_QNAME_ANY_PROP_SINGLE
public static final org.alfresco.service.namespace.QName PROP_QNAME_ANY_PROP_MULTIPLE
public static final org.alfresco.service.namespace.QName ASPECT_WITH_ENCRYPTED
public static final org.alfresco.service.namespace.QName PROP_QNAME_ENCRYPTED_VALUE
protected PolicyComponent policyComponent
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected TransactionService transactionService
protected RetryingTransactionHelper retryingTransactionHelper
protected AuthenticationComponent authenticationComponent
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected MetadataEncryptor metadataEncryptor
protected org.hibernate.dialect.Dialect dialect
protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
public static boolean behaviourExecuted
Constructor Detail |
---|
public BaseNodeServiceTest()
Method Detail |
---|
protected void onSetUpInTransaction() throws java.lang.Exception
onSetUpInTransaction
in class org.springframework.test.AbstractTransactionalSpringContextTests
java.lang.Exception
protected void onTearDownInTransaction() throws java.lang.Exception
onTearDownInTransaction
in class org.springframework.test.AbstractTransactionalSpringContextTests
java.lang.Exception
public static org.alfresco.service.cmr.dictionary.DictionaryService loadModel(org.springframework.context.ApplicationContext applicationContext)
protected abstract org.alfresco.service.cmr.repository.NodeService getNodeService()
return (NodeService) applicationContext.getBean("dbNodeService");The NodeService returned must support cascade deletion.
NodeService
to be
used for this test. It must have transaction demarcation.public void testSetUp() throws java.lang.Exception
java.lang.Exception
public java.util.Map buildNodeGraph() throws java.lang.Exception
java.lang.Exception
BaseNodeServiceTest.buildNodeGraph(NodeService, NodeRef)
public static java.util.Map buildNodeGraph(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef rootNodeRef) throws java.lang.Exception
Level 0: root Level 1: root_p_n1 root_p_n2 Level 2: n1_p_n3 n2_p_n4 n1_n4 n2_p_n5 n1_n8 Level 3: n3_p_n6 n4_n6 n5_p_n7 Level 4: n6_p_n8 n7_n8
animal = monkey
and
reference = n2.toString()
.container
with the exception of n8, which is of type test:content
The namespace URI for all associations is BaseNodeServiceTest.NAMESPACE
.
The naming convention is:
n2_p_n5 n4_n5 where n5 is the node number of the node n2 is the primary parent node number n4 is any other non-primary parent
The session is flushed to ensure that persistence occurs correctly. It is cleared to ensure that fetches against the created data are correct.
ChildAssocRef
instances keyed by qualified assoc name
java.lang.Exception
public void testCreateStore() throws java.lang.Exception
java.lang.Exception
public void testGetStores() throws java.lang.Exception
java.lang.Exception
public void testDeleteStore() throws java.lang.Exception
java.lang.Exception
public void testExists() throws java.lang.Exception
java.lang.Exception
public void testGetRootNode() throws java.lang.Exception
java.lang.Exception
public void testCreateNode() throws java.lang.Exception
java.lang.Exception
public void testCreateWithTooLongPathLocalname() throws java.lang.Exception
java.lang.Exception
public void testCreateNodeWithId() throws java.lang.Exception
uuid
.
java.lang.Exception
public void testGetType() throws java.lang.Exception
java.lang.Exception
public void testSetType() throws java.lang.Exception
java.lang.Exception
protected void fillProperties(org.alfresco.service.namespace.QName qname, java.util.Map properties)
public void testAspects() throws java.lang.Exception
java.lang.Exception
public void testAspectsAddedAutomatically() throws java.lang.Exception
java.lang.Exception
public void testAspectRemoval() throws java.lang.Exception
java.lang.Exception
public void testAspectRemovalCascadeDelete() throws java.lang.Exception
ALFCOM-2299
java.lang.Exception
public void testAspectWithChildAssociationsCreationAndRetrieval() throws java.lang.Exception
java.lang.Exception
public void testCreateNodeNoProperties() throws java.lang.Exception
java.lang.Exception
public void testLargeStrings() throws java.lang.Exception
java.lang.Exception
public void testCreateNodeWithProperties() throws java.lang.Exception
java.lang.Exception
BaseNodeServiceTest.ASPECT_QNAME_TEST_TITLED
public void testCascadeDelete() throws java.lang.Exception
java.lang.Exception
public void testDelete() throws java.lang.Exception
java.lang.Exception
public void testDeleteWithBadlyBehavedOnDeletePolicies() throws java.lang.Exception
java.lang.Exception
public void testDeleteWithBadlyBehavedBeforeDeletePolicies() throws java.lang.Exception
java.lang.Exception
public void testAddBogusChild() throws java.lang.Exception
java.lang.Exception
public void testAddChild() throws java.lang.Exception
java.lang.Exception
public void testRemoveSpecificChild() throws java.lang.Exception
java.lang.Exception
public void testRemoveChildByRef() throws java.lang.Exception
java.lang.Exception
public void testProperties() throws java.lang.Exception
java.lang.Exception
public void testAddProperties() throws java.lang.Exception
java.lang.Exception
public void testDefaultPropertyOverride_AddAspect() throws java.lang.Exception
java.lang.Exception
public void testDefaultPropertyOverride_CreateNode() throws java.lang.Exception
java.lang.Exception
public void testDefaultPropertyOverride_SpecializeWithoutProperty() throws java.lang.Exception
java.lang.Exception
public void testDefaultPropertyOverride_SpecializeWithProperty() throws java.lang.Exception
java.lang.Exception
public void testRemoveProperty() throws java.lang.Exception
java.lang.Exception
public void testGetUnknownProperty() throws java.lang.Exception
java.lang.Exception
public void testSerializableProperties() throws java.lang.Exception
java.lang.Exception
public void testEncryptionAndDecryptionOfProperties()
public void testEncryptedProperties() throws java.lang.Exception
java.lang.Exception
public void testMultiProp() throws java.lang.Exception
java.lang.Exception
protected void getExpectedPropertyValues(java.util.Map checkProperties)
properties.put(PROP_QNAME_BOOLEAN_VALUE, true); properties.put(PROP_QNAME_INTEGER_VALUE, 123); properties.put(PROP_QNAME_LONG_VALUE, 123L); properties.put(PROP_QNAME_FLOAT_VALUE, 123.0F); properties.put(PROP_QNAME_DOUBLE_VALUE, 123.0); properties.put(PROP_QNAME_STRING_VALUE, "123.0"); properties.put(PROP_QNAME_ML_TEXT_VALUE, new MLText("This is ML text in the default language")); properties.put(PROP_QNAME_DATE_VALUE, new Date()); properties.put(PROP_QNAME_SERIALIZABLE_VALUE, "456"); properties.put(PROP_QNAME_NODEREF_VALUE, rootNodeRef); properties.put(PROP_QNAME_QNAME_VALUE, TYPE_QNAME_TEST_CONTENT); properties.put(PROP_QNAME_PATH_VALUE, pathProperty); properties.put(PROP_QNAME_CONTENT_VALUE, new ContentData("url", "text/plain", 88L, "UTF-8")); properties.put(PROP_QNAME_CATEGORY_VALUE, cat); properties.put(PROP_QNAME_LOCALE_VALUE, Locale.CHINESE); properties.put(PROP_QNAME_NULL_VALUE, null); properties.put(PROP_QNAME_MULTI_VALUE, listProperty);
public void testPropertyTypes() throws java.lang.Exception
java.lang.Exception
#getCheckPropertyValues(Map)
public void testPropertyLocaleBehaviour() throws java.lang.Exception
java.lang.Exception
public void testEmptyCollections() throws java.lang.Exception
java.lang.Exception
public void testBigCollections() throws java.lang.Exception
java.lang.Exception
public void testMultiValueMLTextProperties() throws java.lang.Exception
java.lang.Exception
public void testMultivaluedSerializable() throws java.lang.Exception
java.lang.Exception
public void testGetReferencableProperties() throws java.lang.Exception
referencable
properties
are present
java.lang.Exception
public void testReferencePropertySet() throws java.lang.Exception
java.lang.Exception
public void testGetParentAssocs() throws java.lang.Exception
java.lang.Exception
public void testGetChildAssocs() throws java.lang.Exception
java.lang.Exception
public void testDuplicateChildAssocCleanup() throws java.lang.Exception
java.lang.Exception
public void testGetChildAssocsByChildType() throws java.lang.Exception
java.lang.Exception
public void testMoveNode() throws java.lang.Exception
java.lang.Exception
public void testDuplicateAssociationDetection() throws java.lang.Exception
java.lang.Exception
public void testCreateAndRemoveAssociation() throws java.lang.Exception
java.lang.Exception
public void testGetTargetAssocs() throws java.lang.Exception
java.lang.Exception
public void testTargetAssoc_Ordering() throws java.lang.Exception
java.lang.Exception
public void testGetSourceAssocs() throws java.lang.Exception
java.lang.Exception
public void testGetPath() throws java.lang.Exception
java.lang.Exception
BaseNodeServiceTest.buildNodeGraph()
public void testGetPaths() throws java.lang.Exception
java.lang.Exception
BaseNodeServiceTest.buildNodeGraph()
public void testPrimaryPathCascadeDelete() throws java.lang.Exception
java.lang.Exception
public void testDefaultValues() throws java.lang.Exception
java.lang.Exception
public void testMandatoryAspects()
public void testDuplicateCatch() throws java.lang.Exception
java.lang.Exception
public void testNonDuplicateAssocsWithSuppliedName() throws java.lang.Throwable
java.lang.Throwable
public void testDuplicateAssocsWithoutSuppliedName() throws java.lang.Throwable
java.lang.Throwable
public void testDeleteAndAddSameName() throws java.lang.Exception
java.lang.Exception
public void testGetByName() throws java.lang.Exception
java.lang.Exception
public void testLocalizedAspect() throws java.lang.Exception
java.lang.Exception
public void testAR1303() throws java.lang.Exception
java.lang.Exception
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map before, java.util.Map after)
public void testAR782() throws java.lang.Exception
java.lang.Exception
public void testAR1414() throws java.lang.Exception
java.lang.Exception
public void testGetNodeRefById()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |