org.alfresco.repo.action
Class ActionTrackingServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.action.ActionTrackingServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class ActionTrackingServiceImplTest
extends junit.framework.TestCase

Action tracking service tests. These mostly need careful control over the transactions they use.


Nested Class Summary
 class ActionTrackingServiceImplTest.AsyncOccurs
           
 
Constructor Summary
ActionTrackingServiceImplTest()
           
 
Method Summary
protected  void setUp()
           
 void testCancellation()
          Cancel related
 void testCreateCacheKeys()
          Creating cache keys
 void testExecutionDetailsSummary()
          Creating ExecutionDetails and ExecutionSummary
 void testExecutionInstanceAssignment()
          Running an action gives it an execution ID
 void testFailingActions()
          Failing actions go into the cache, then out
 void testInOutCache()
          The correct things happen with the cache when you mark things as working / failed / etc
 void testJavascriptAPI()
           
 void testListings()
          Ensure that the listing functions work
 void testPendingActions()
          Ensure that pending actions behave properly
 void testWorkingActions()
          Working actions go into the cache, then out
 void xtestExecutionTrackingOnExecution()
          Tests that when we run an action, either synchronously or asynchronously, with it working or failing, that the action execution service correctly sets the flags
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 

Constructor Detail

ActionTrackingServiceImplTest

public ActionTrackingServiceImplTest()
Method Detail

setUp

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

testCreateCacheKeys

public void testCreateCacheKeys()
                         throws java.lang.Exception
Creating cache keys

Throws:
java.lang.Exception

testExecutionDetailsSummary

public void testExecutionDetailsSummary()
                                 throws java.lang.Exception
Creating ExecutionDetails and ExecutionSummary

Throws:
java.lang.Exception

testExecutionInstanceAssignment

public void testExecutionInstanceAssignment()
                                     throws java.lang.Exception
Running an action gives it an execution ID

Throws:
java.lang.Exception

testInOutCache

public void testInOutCache()
                    throws java.lang.Exception
The correct things happen with the cache when you mark things as working / failed / etc

Throws:
java.lang.Exception

testWorkingActions

public void testWorkingActions()
                        throws java.lang.Exception
Working actions go into the cache, then out

Throws:
java.lang.Exception

testFailingActions

public void testFailingActions()
                        throws java.lang.Exception
Failing actions go into the cache, then out

Throws:
java.lang.Exception

testPendingActions

public void testPendingActions()
                        throws java.lang.Exception
Ensure that pending actions behave properly

Throws:
java.lang.Exception

testListings

public void testListings()
                  throws java.lang.Exception
Ensure that the listing functions work

Throws:
java.lang.Exception

testCancellation

public void testCancellation()
                      throws java.lang.Exception
Cancel related

Throws:
java.lang.Exception

xtestExecutionTrackingOnExecution

public void xtestExecutionTrackingOnExecution()
                                       throws java.lang.Exception
Tests that when we run an action, either synchronously or asynchronously, with it working or failing, that the action execution service correctly sets the flags

Throws:
java.lang.Exception

testJavascriptAPI

public void testJavascriptAPI()
                       throws java.lang.Exception
Throws:
java.lang.Exception


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