diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-06-03 15:36:07 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-06-03 15:36:07 +0200 |
commit | d0f7083699da7825b27d2c96487a330d99645f0a (patch) | |
tree | 3f88b178807176ae812f87d3ab964d645efaa8bf /eaaf_core/src/test/java/at | |
parent | 7126ed717d01abad07e86150665f00154db27770 (diff) | |
download | EAAF-Components-d0f7083699da7825b27d2c96487a330d99645f0a.tar.gz EAAF-Components-d0f7083699da7825b27d2c96487a330d99645f0a.tar.bz2 EAAF-Components-d0f7083699da7825b27d2c96487a330d99645f0a.zip |
add jUnit test for EAAF process-engine
Diffstat (limited to 'eaaf_core/src/test/java/at')
-rw-r--r-- | eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/process/spring/test/SpringExpressionEvaluatorTest.java | 11 |
1 files changed, 10 insertions, 1 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 4aa32360..01fc6bb8 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 @@ -59,8 +59,17 @@ public class SpringExpressionEvaluatorTest { @Test public void testEvaluateExpressionWithCtx() { - ctx.put("myProperty", false); + ctx.put("myProperty", false); + ctx.put("stringProperty", "aabbccddee"); + + //check basic boolean flags assertFalse(expressionEvaluator.evaluate(ctx, "ctx['myProperty']")); + + //check String flags + assertTrue(expressionEvaluator.evaluate(ctx, "'aabbccddee'.equals(ctx['stringProperty'])")); + assertFalse(expressionEvaluator.evaluate(ctx, "'aabbccddee'.equals(ctx['notExist'])")); + assertFalse(expressionEvaluator.evaluate(ctx, "'aabbccddee'.equals(ctx['myProperty'])")); + } @Test |