1 17 package org.alfresco.repo.action; 18 19 import org.alfresco.service.cmr.action.ActionCondition; 20 21 24 public class ActionConditionImplTest extends BaseParameterizedItemImplTest 25 { 26 29 @Override 30 protected ParameterizedItemImpl create() 31 { 32 return new ActionConditionImpl( 33 ID, 34 NAME, 35 this.paramValues); 36 } 37 38 public void testGetRuleConditionDefintion() 39 { 40 ActionCondition temp = (ActionCondition)create(); 41 assertEquals(NAME, temp.getActionConditionDefinitionName()); 42 } 43 44 public void testSetGetInvertCondition() 45 { 46 ActionCondition temp = (ActionCondition)create(); 47 assertFalse(temp.getInvertCondition()); 48 temp.setInvertCondition(true); 49 assertTrue(temp.getInvertCondition()); 50 } 51 } 52 | Popular Tags |