1 17 package org.alfresco.repo.action; 18 19 import org.alfresco.service.cmr.rule.RuleServiceException; 20 21 22 25 public class ActionDefinitionImplTest extends BaseParameterizedItemDefinitionImplTest 26 { 27 private static final String RULE_ACTION_EXECUTOR = "ruleActionExector"; 28 29 protected ParameterizedItemDefinitionImpl create() 30 { 31 try 33 { 34 ActionDefinitionImpl temp = new ActionDefinitionImpl(NAME); 35 temp.setParameterDefinitions(duplicateParamDefs); 36 fail("Duplicate param names are not allowed."); 37 } 38 catch (RuleServiceException exception) 39 { 40 } 42 43 ActionDefinitionImpl temp = new ActionDefinitionImpl(NAME); 45 assertNotNull(temp); 46 temp.setParameterDefinitions(paramDefs); 49 temp.setRuleActionExecutor(RULE_ACTION_EXECUTOR); 50 return temp; 51 } 52 53 56 public void testGetRuleActionExecutor() 57 { 58 ActionDefinitionImpl temp = (ActionDefinitionImpl)create(); 59 assertEquals(RULE_ACTION_EXECUTOR, temp.getRuleActionExecutor()); 60 } 61 } 62 | Popular Tags |