org.alfresco.util
Class BaseAlfrescoTestCase

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

public abstract class BaseAlfrescoTestCase
extends junit.framework.TestCase

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


Field Summary
protected  ActionService actionService
           
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  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
           
 
Constructor Summary
BaseAlfrescoTestCase()
           
 
Method Summary
protected  void setUp()
           
protected  void setUpContext()
          By default will return the full context.
protected  void tearDown()
           
 
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

transactionService

protected TransactionService transactionService
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.


setUp

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

tearDown

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


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