pull/284/head
Mahmoud Ben Hassine 5 years ago
parent 8864d0e41f
commit 94d29cc86b
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

@ -63,7 +63,7 @@ public class MVELJsonRuleFactoryTest {
Rule rule = iterator.next();
assertThat(rule).isNotNull();
assertThat(rule.getName()).isEqualTo("adult rule");
assertThat(rule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(rule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(rule.getPriority()).isEqualTo(1);
rule = iterator.next();
@ -83,7 +83,7 @@ public class MVELJsonRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}
@ -97,7 +97,7 @@ public class MVELJsonRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}

@ -63,7 +63,7 @@ public class MVELYamlRuleFactoryTest {
Rule rule = iterator.next();
assertThat(rule).isNotNull();
assertThat(rule.getName()).isEqualTo("adult rule");
assertThat(rule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(rule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(rule.getPriority()).isEqualTo(1);
rule = iterator.next();
@ -83,7 +83,7 @@ public class MVELYamlRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}
@ -97,7 +97,7 @@ public class MVELYamlRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "person.age > 18",
"actions": [

@ -1,5 +1,5 @@
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "person.age > 18"
actions:

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "person.age > 18",
"actions": [

@ -1,6 +1,6 @@
---
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "person.age > 18"
actions:

@ -63,7 +63,7 @@ public class SpELJsonRuleFactoryTest {
Rule rule = iterator.next();
assertThat(rule).isNotNull();
assertThat(rule.getName()).isEqualTo("adult rule");
assertThat(rule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(rule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(rule.getPriority()).isEqualTo(1);
rule = iterator.next();
@ -83,7 +83,7 @@ public class SpELJsonRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}
@ -97,7 +97,7 @@ public class SpELJsonRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}

@ -63,7 +63,7 @@ public class SpELYamlRuleFactoryTest {
Rule rule = iterator.next();
assertThat(rule).isNotNull();
assertThat(rule.getName()).isEqualTo("adult rule");
assertThat(rule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(rule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(rule.getPriority()).isEqualTo(1);
rule = iterator.next();
@ -83,7 +83,7 @@ public class SpELYamlRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}
@ -97,7 +97,7 @@ public class SpELYamlRuleFactoryTest {
// then
assertThat(adultRule.getName()).isEqualTo("adult rule");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRule.getPriority()).isEqualTo(1);
}

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "#{ ['person'].age > 18 }",
"actions": [

@ -1,5 +1,5 @@
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "#{ ['person'].age > 18 }"
actions:

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "#{ ['person'].age > 18 }",
"actions": [

@ -1,6 +1,6 @@
---
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "#{ ['person'].age > 18 }"
actions:

@ -54,7 +54,7 @@ public class JsonRuleDefinitionReaderTest {
RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);
assertThat(adultRuleDefinition).isNotNull();
assertThat(adultRuleDefinition.getName()).isEqualTo("adult rule");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);
assertThat(adultRuleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));
@ -73,7 +73,7 @@ public class JsonRuleDefinitionReaderTest {
RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);
assertThat(adultRuleDefinition).isNotNull();
assertThat(adultRuleDefinition.getName()).isEqualTo("adult rule");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);
assertThat(adultRuleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));
@ -135,7 +135,7 @@ public class JsonRuleDefinitionReaderTest {
RuleDefinition ruleDefinition = ruleDefinitions.get(0);
assertThat(ruleDefinition).isNotNull();
assertThat(ruleDefinition.getName()).isEqualTo("adult rule");
assertThat(ruleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(ruleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(ruleDefinition.getPriority()).isEqualTo(1);
assertThat(ruleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));

@ -54,7 +54,7 @@ public class YamlRuleDefinitionReaderTest {
RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);
assertThat(adultRuleDefinition).isNotNull();
assertThat(adultRuleDefinition.getName()).isEqualTo("adult rule");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);
assertThat(adultRuleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));
@ -73,7 +73,7 @@ public class YamlRuleDefinitionReaderTest {
RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);
assertThat(adultRuleDefinition).isNotNull();
assertThat(adultRuleDefinition.getName()).isEqualTo("adult rule");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(adultRuleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);
assertThat(adultRuleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));
@ -135,7 +135,7 @@ public class YamlRuleDefinitionReaderTest {
RuleDefinition ruleDefinition = ruleDefinitions.get(0);
assertThat(ruleDefinition).isNotNull();
assertThat(ruleDefinition.getName()).isEqualTo("adult rule");
assertThat(ruleDefinition.getDescription()).isEqualTo("when age is greater then 18, then mark as adult");
assertThat(ruleDefinition.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
assertThat(ruleDefinition.getPriority()).isEqualTo(1);
assertThat(ruleDefinition.getCondition()).isEqualTo("person.age > 18");
assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList("person.setAdult(true);"));

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "person.age > 18",
"actions": [

@ -1,5 +1,5 @@
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "person.age > 18"
actions:

@ -1,7 +1,7 @@
[
{
"name": "adult rule",
"description": "when age is greater then 18, then mark as adult",
"description": "when age is greater than 18, then mark as adult",
"priority": 1,
"condition": "person.age > 18",
"actions": [

@ -1,6 +1,6 @@
---
name: adult rule
description: when age is greater then 18, then mark as adult
description: when age is greater than 18, then mark as adult
priority: 1
condition: "person.age > 18"
actions:

Loading…
Cancel
Save