diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-03-20 13:50:34 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-03-20 13:50:34 +0100 |
commit | a46333372c7f7b74831a19c04c93c7b6815b8f84 (patch) | |
tree | 4ad9bc4ac7d57a9fbfe1b4297ab5d7e7f4209382 /eaaf_core/src/test/java/at/gv | |
parent | b3157cfd92685303de5aa05f05a66ec933d21266 (diff) | |
download | EAAF-Components-a46333372c7f7b74831a19c04c93c7b6815b8f84.tar.gz EAAF-Components-a46333372c7f7b74831a19c04c93c7b6815b8f84.tar.bz2 EAAF-Components-a46333372c7f7b74831a19c04c93c7b6815b8f84.zip |
add some more test cases for process-engine evaluator
Diffstat (limited to 'eaaf_core/src/test/java/at/gv')
-rw-r--r-- | eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java index 26e2e17b..7559fe85 100644 --- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java +++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java @@ -69,6 +69,10 @@ public class SpringExpressionEvaluatorTest { assertTrue(expressionEvaluator.evaluate(ctx, "'HelloWorld'.equals(@simplePojo.stringValue)")); assertTrue(expressionEvaluator.evaluate(ctx, "@simplePojo.integerValue == 42")); assertTrue(expressionEvaluator.evaluate(ctx, "@simplePojo.stringValue.length() == 10")); + + assertTrue(expressionEvaluator.evaluate(ctx, "@simplePojo.stringValue.length() == 10 and @simplePojo.booleanValue")); + assertFalse(expressionEvaluator.evaluate(ctx, "@simplePojo.stringValue.length() == 10 and !@simplePojo.booleanValue")); + assertTrue(expressionEvaluator.evaluate(ctx, "@simplePojo.stringValue.length() == 10 or !@simplePojo.booleanValue")); } } |