Class DefaultSourceRuleInspectorTest
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.services.impl.DefaultSourceRuleInspectorTest
-
@UnitTest public class DefaultSourceRuleInspectorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFINITION_ID
-
Constructor Summary
Constructors Constructor Description DefaultSourceRuleInspectorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuleActionDatacreateRuleAction(java.lang.String actionId)protected RuleConditionDatacreateRuleCondition(java.lang.String conditionId, RuleConditionData... children)voidsetUp()voidshouldBeFalseIfActionDefinitionIsNotAssociatedWithSourceRule()voidshouldBeFalseIfConditionDefinitionIsNotAssociatedWithSourceRule()voidshouldBeTrueIfActionDefinitionIsAssociatedWithSourceRule()voidshouldBeTrueIfConditionDefinitionIsAssociatedInTheConditionsTreeWithSourceRule()voidshouldBeTrueIfConditionDefinitionIsAssociatedWithSourceRule()
-
-
-
Field Detail
-
DEFINITION_ID
public static final java.lang.String DEFINITION_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeTrueIfActionDefinitionIsAssociatedWithSourceRule
public void shouldBeTrueIfActionDefinitionIsAssociatedWithSourceRule() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeFalseIfActionDefinitionIsNotAssociatedWithSourceRule
public void shouldBeFalseIfActionDefinitionIsNotAssociatedWithSourceRule() throws java.lang.Exception- Throws:
java.lang.Exception
-
createRuleAction
protected RuleActionData createRuleAction(java.lang.String actionId)
-
shouldBeTrueIfConditionDefinitionIsAssociatedWithSourceRule
public void shouldBeTrueIfConditionDefinitionIsAssociatedWithSourceRule() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeFalseIfConditionDefinitionIsNotAssociatedWithSourceRule
public void shouldBeFalseIfConditionDefinitionIsNotAssociatedWithSourceRule() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeTrueIfConditionDefinitionIsAssociatedInTheConditionsTreeWithSourceRule
public void shouldBeTrueIfConditionDefinitionIsAssociatedInTheConditionsTreeWithSourceRule() throws java.lang.Exception- Throws:
java.lang.Exception
-
createRuleCondition
protected RuleConditionData createRuleCondition(java.lang.String conditionId, RuleConditionData... children)
-
-