org.alfresco.repo.version
Class NodeServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.springframework.test.AbstractTransactionalSpringContextTests
                              extended by org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
                                  extended by org.alfresco.util.BaseSpringTest
                                      extended by org.alfresco.repo.version.BaseVersionStoreTest
                                          extended by org.alfresco.repo.version.NodeServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class NodeServiceImplTest
extends BaseVersionStoreTest


Field Summary
protected  org.alfresco.service.cmr.repository.NodeService versionStoreNodeService
          version store node service
 
Fields inherited from class org.alfresco.repo.version.BaseVersionStoreTest
authenticationDAO, authenticationService, contentService, dbNodeService, dictionaryDAO, mlText, MLTEXT_PROP, MULTI_PROP, MULTI_VALUE_1, MULTI_VALUE_2, multiValue, nodeArchiveService, nodeProperties, nodeService, permissionService, PROP_1, PROP_2, PROP_3, rootNodeRef, TEST_ASPECT_QNAME, TEST_ASSOC, TEST_CHILD_ASSOC_1, TEST_CHILD_ASSOC_2, TEST_CONTENT, TEST_NAMESPACE, TEST_TYPE_QNAME, testStoreRef, transactionService, txnHelper, VALUE_1, VALUE_2, VALUE_3, VERSION_PROP_1, VERSION_PROP_2, VERSION_PROP_3, versionableNodes, versionProperties, versionService
 
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
 
Constructor Summary
NodeServiceImplTest()
           
 
Method Summary
protected  void onSetUpInTransaction()
          Called during the transaction setup
 void testAddAspect()
          Test addAspect
 void testAddChild()
          Test addChild
 void testCreateAssociation()
          Test createAssociation
 void testCreateNode()
          Test createNode
 void testDeleteNode()
          Test delete node
 void testGetAspects()
          Test getAspects
 void testGetAssociationSources()
          Test getAssociationSources
 void testGetAssociationTargets()
          Test getAssociationTargets
 void testGetChildAssocs()
          Test getChildAssocs
 void testGetParentAssocs()
          Test getParentAssocs
 void testGetPath()
          Test getPath
 void testGetPaths()
          Test getPaths
 void testGetPrimaryParent()
          Test getPrimaryParent
 void testGetProperties()
          Test getProperties
 void testGetProperty()
          Test getProperty
 void testGetType()
          Test getType
 void testHasAspect()
          Test hasAspect
 void testRemoveAspect()
          Test removeAspect
 void testRemoveAssociation()
          Test removeAssociation
 void testRemoveChild()
          Test removeChild
 void testSetProperties()
          Test setProperties
 void testSetProperty()
          Test setProperty
 void testUnicodeNamesAndProperties()
          Tests that we can store and retrieve unicode properties and association names.
 
Methods inherited from class org.alfresco.repo.version.BaseVersionStoreTest
checkNewVersion, checkVersion, createNewNode, createNewVersionableNode, createNode, createVersion, createVersion, createVersion, peekNextVersionLabel, setDictionaryDAO, setVersionService
 
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, onTearDownInTransaction, 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

versionStoreNodeService

protected org.alfresco.service.cmr.repository.NodeService versionStoreNodeService
version store node service

Constructor Detail

NodeServiceImplTest

public NodeServiceImplTest()
Method Detail

onSetUpInTransaction

protected void onSetUpInTransaction()
                             throws java.lang.Exception
Called during the transaction setup

Overrides:
onSetUpInTransaction in class BaseVersionStoreTest
Throws:
java.lang.Exception

testGetType

public void testGetType()
Test getType


testGetProperties

public void testGetProperties()
Test getProperties


testGetProperty

public void testGetProperty()
Test getProperty


testGetChildAssocs

public void testGetChildAssocs()
Test getChildAssocs


testGetAssociationTargets

public void testGetAssociationTargets()
Test getAssociationTargets


testHasAspect

public void testHasAspect()
Test hasAspect


testGetAspects

public void testGetAspects()
Test getAspects


testGetParentAssocs

public void testGetParentAssocs()
Test getParentAssocs


testGetPrimaryParent

public void testGetPrimaryParent()
Test getPrimaryParent


testCreateNode

public void testCreateNode()
Test createNode


testAddAspect

public void testAddAspect()
Test addAspect


testRemoveAspect

public void testRemoveAspect()
Test removeAspect


testDeleteNode

public void testDeleteNode()
Test delete node


testAddChild

public void testAddChild()
Test addChild


testRemoveChild

public void testRemoveChild()
Test removeChild


testSetProperties

public void testSetProperties()
Test setProperties


testSetProperty

public void testSetProperty()
Test setProperty


testCreateAssociation

public void testCreateAssociation()
Test createAssociation


testRemoveAssociation

public void testRemoveAssociation()
Test removeAssociation


testGetAssociationSources

public void testGetAssociationSources()
Test getAssociationSources


testGetPath

public void testGetPath()
Test getPath


testGetPaths

public void testGetPaths()
Test getPaths


testUnicodeNamesAndProperties

public void testUnicodeNamesAndProperties()
Tests that we can store and retrieve unicode properties and association names. If there's something wrong with how we're setting up the database or database connection WRT unicode, this is a test that'll hopefully break in testing and alert us!



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.