org.alfresco.repo.rule
Class RuleServiceCoverageTest

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

public class RuleServiceCoverageTest
extends junit.framework.TestCase


Constructor Summary
RuleServiceCoverageTest()
           
 
Method Summary
protected  void setUp()
          Setup method
 void testAddFeaturesAction()
          Test: rule type: inbound condition: no-condition() action: add-features( aspect-name = versionable)
 void testAddFeaturesToAFolder()
           
 void testAsyncExecutionWithPotentialLoop()
           
 void testAsyncRuleExecution()
          Check async rule execution
 void testCheckInAction()
          Test: rule type: inbound condition: no-condition() action: checkin()
 void testCheckMandatoryProperties()
          Test checkMandatoryProperties method
 void testCheckOutAction()
          Test: rule type: inbound condition: no-condition() action: checkout()
 void testCheckThatChildRuleFiresOnMove()
           
 void testCheckThatModifyNameDoesNotTriggerInboundRule()
           
 void testCheckThatModifyNameDoesNotTriggerOutboundRule()
           
 void testContainsTextCondition()
          Test: rule type: inbound condition: match-text( text = .doc, operation = CONTAINS) action: add-features( aspect-name = versionable)
 void testCopyAction()
          Test: rule type: inbound condition: no-condition() action: copy()
 void testCopyFolderToTriggerRules()
           
 void testDisableIndividualRules()
           
 void testDisableRule()
           
 void testImageTransformAction()
          Test image transformation
 void testInboundRuleType()
           
 void testInCategoryCondition()
          Test: rule type: inbound condition: in-category action: add-feature
 void testLinkCategoryAction()
          Test: rule type: inbound condition: no-condition action: link-category
 void testMoveAction()
          Test: rule type: inbound condition: no-condition() action: move()
 void testOutboundRuleType()
          Test: rule type: outbound condition: no-condition() action: add-features( aspect-name = versionable)
 void testRulesDisabled()
          Check that the rules can be enabled and disabled
 void testSimpleWorkflowAction()
          Test: rule type: inbound condition: no-condition action: simple-workflow
 void testTransformAction()
          Test: rule type: inbound condition: no-condition() action: transform()
 void testUpdateAndMoveRuleOnSameFolder()
          ALF-4926: Incorrect behavior of update and move rule for the same folder

Two rules:
When items are deleted, copy to another folder. In addition, when items are updated, add an aspect (or any other rule). Ensure that the first copy does not result in rules being fired on the target.

 void testUpdateRuleType()
           
 void xtestMailAction()
          Test: rule type: inbound condition: no-condition action: mail Note: this test will be removed from the standard list since it is not currently automated
 void xtestPerformanceOfRuleExecution()
          Performance guideline test
 
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

RuleServiceCoverageTest

public RuleServiceCoverageTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Setup method

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testAsyncRuleExecution

public void testAsyncRuleExecution()
Check async rule execution


testAddFeaturesAction

public void testAddFeaturesAction()
Test: rule type: inbound condition: no-condition() action: add-features( aspect-name = versionable)


testCheckThatModifyNameDoesNotTriggerInboundRule

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

testCheckThatModifyNameDoesNotTriggerOutboundRule

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

testCheckThatChildRuleFiresOnMove

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

testUpdateAndMoveRuleOnSameFolder

public void testUpdateAndMoveRuleOnSameFolder()
                                       throws java.lang.Exception
ALF-4926: Incorrect behavior of update and move rule for the same folder

Two rules:

Ensure that the first copy does not result in rules being fired on the target.

Throws:
java.lang.Exception

testDisableIndividualRules

public void testDisableIndividualRules()

testDisableRule

public void testDisableRule()

testAddFeaturesToAFolder

public void testAddFeaturesToAFolder()

testCopyFolderToTriggerRules

public void testCopyFolderToTriggerRules()

testSimpleWorkflowAction

public void testSimpleWorkflowAction()
Test: rule type: inbound condition: no-condition action: simple-workflow


testInCategoryCondition

public void testInCategoryCondition()
Test: rule type: inbound condition: in-category action: add-feature


testLinkCategoryAction

public void testLinkCategoryAction()
Test: rule type: inbound condition: no-condition action: link-category


xtestMailAction

public void xtestMailAction()
Test: rule type: inbound condition: no-condition action: mail Note: this test will be removed from the standard list since it is not currently automated


testCopyAction

public void testCopyAction()
Test: rule type: inbound condition: no-condition() action: copy()


testTransformAction

public void testTransformAction()
                         throws java.lang.Throwable
Test: rule type: inbound condition: no-condition() action: transform()

Throws:
java.lang.Throwable

testImageTransformAction

public void testImageTransformAction()
                              throws java.lang.Throwable
Test image transformation

Throws:
java.lang.Throwable

testMoveAction

public void testMoveAction()
Test: rule type: inbound condition: no-condition() action: move()


testCheckOutAction

public void testCheckOutAction()
Test: rule type: inbound condition: no-condition() action: checkout()


testCheckInAction

public void testCheckInAction()
Test: rule type: inbound condition: no-condition() action: checkin()


testRulesDisabled

public void testRulesDisabled()
Check that the rules can be enabled and disabled


testCheckMandatoryProperties

public void testCheckMandatoryProperties()
Test checkMandatoryProperties method


testContainsTextCondition

public void testContainsTextCondition()
Test: rule type: inbound condition: match-text( text = .doc, operation = CONTAINS) action: add-features( aspect-name = versionable)


testInboundRuleType

public void testInboundRuleType()

testUpdateRuleType

public void testUpdateRuleType()

testOutboundRuleType

public void testOutboundRuleType()
Test: rule type: outbound condition: no-condition() action: add-features( aspect-name = versionable)


xtestPerformanceOfRuleExecution

public void xtestPerformanceOfRuleExecution()
Performance guideline test


testAsyncExecutionWithPotentialLoop

public void testAsyncExecutionWithPotentialLoop()


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