org.alfresco.util
Class BaseAlfrescoTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.util.RetryingTransactionHelperTestCase
              extended by org.alfresco.util.BaseAlfrescoTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CifsIntegrationTest, ModuleComponentHelperTest, NotificationServiceImplSystemTest, RuntimeExecutableContentTransformerTest

public abstract class BaseAlfrescoTestCase
extends RetryingTransactionHelperTestCase

Base Alfresco test. Creates a store and root node that can be used in the tests.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.util.RetryingTransactionHelperTestCase
RetryingTransactionHelperTestCase.FailureTest, RetryingTransactionHelperTestCase.Test
 
Field Summary
protected  ActionService actionService
          Action service
protected  AuthenticationComponent authenticationComponent
          The authentication component
protected  ContentService contentService
          The content service
protected  org.springframework.context.ApplicationContext ctx
          This context will be fetched each time, but almost always will have been cached by ApplicationContextHelper
protected  org.alfresco.service.cmr.repository.NodeService nodeService
          The node service
protected  RetryingTransactionHelper retryingTransactionHelper
          Retrying transaction helper
protected  org.alfresco.service.cmr.repository.NodeRef rootNodeRef
          The root node reference
protected  ServiceRegistry serviceRegistry
          the service registry
protected  org.alfresco.service.cmr.repository.StoreRef storeRef
          The store reference
protected  TransactionService transactionService
          Transaction service
 
Constructor Summary
BaseAlfrescoTestCase()
           
 
Method Summary
 RetryingTransactionHelper getRetryingTransactionHelper()
           
protected  void setUp()
           
protected  void setUpContext()
          By default will return the full context.
protected  void tearDown()
           
protected  boolean useSpacesStore()
           
 
Methods inherited from class org.alfresco.util.RetryingTransactionHelperTestCase
doTestInTransaction, doTestInTransaction, doTestInTransaction, doTestInTransaction
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctx

protected org.springframework.context.ApplicationContext ctx
This context will be fetched each time, but almost always will have been cached by ApplicationContextHelper


serviceRegistry

protected ServiceRegistry serviceRegistry
the service registry


nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService
The node service


contentService

protected ContentService contentService
The content service


authenticationComponent

protected AuthenticationComponent authenticationComponent
The authentication component


storeRef

protected org.alfresco.service.cmr.repository.StoreRef storeRef
The store reference


rootNodeRef

protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
The root node reference


actionService

protected ActionService actionService
Action service


transactionService

protected TransactionService transactionService
Transaction service


retryingTransactionHelper

protected RetryingTransactionHelper retryingTransactionHelper
Retrying transaction helper

Constructor Detail

BaseAlfrescoTestCase

public BaseAlfrescoTestCase()
Method Detail

setUpContext

protected void setUpContext()
By default will return the full context. Override this if your test needs a different one.


useSpacesStore

protected boolean useSpacesStore()
Returns:
true if using spaces store, otherwise creates own store

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase.setUp()

getRetryingTransactionHelper

public RetryingTransactionHelper getRetryingTransactionHelper()
Specified by:
getRetryingTransactionHelper in class RetryingTransactionHelperTestCase
Returns:
retrying transaction helper
See Also:
RetryingTransactionHelperTestCase.getRetryingTransactionHelper()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase.tearDown()


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