org.alfresco.repo.workflow.activiti
Class ActivitiSpringTransactionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.workflow.activiti.ActivitiSpringTransactionTest
All Implemented Interfaces:
junit.framework.Test

public class ActivitiSpringTransactionTest
extends junit.framework.TestCase

Since:
3.4.e

Constructor Summary
ActivitiSpringTransactionTest()
           
 
Method Summary
protected  void setUp()
          
protected  void tearDown()
          
 void testNestedWithoutPropogation()
          Checks nesting of two transactions with requiresNew == true
 void testRollbackFromActiviti()
          Start a process and then trigger a rollback by throwing an exception in Alfresco NodeService.
 void testRollbackFromAlfresco()
          Start a process and then trigger a rollback by throwing an exception in Alfresco NodeService.
 void testSmoke()
           
 
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
 

Constructor Detail

ActivitiSpringTransactionTest

public ActivitiSpringTransactionTest()
Method Detail

testSmoke

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

testRollbackFromAlfresco

public void testRollbackFromAlfresco()
Start a process and then trigger a rollback by throwing an exception in Alfresco NodeService. Check that the process instance was rolled back.


testRollbackFromActiviti

public void testRollbackFromActiviti()
Start a process and then trigger a rollback by throwing an exception in Alfresco NodeService. Check that the process instance was rolled back.


testNestedWithoutPropogation

public void testNestedWithoutPropogation()
Checks nesting of two transactions with requiresNew == true


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.