diff --git a/README.md b/README.md index 84a20a4..197890b 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ Example BPMN with service task: Available script languages: * [javascript](https://www.graalvm.org/) (GraalVM JS) * [groovy](http://groovy-lang.org/) -* [feel](https://github.com/camunda/feel-scala) * [mustache](http://mustache.github.io/mustache.5.html) * [kotlin](https://kotlinlang.org/) diff --git a/pom.xml b/pom.xml index a6186f9..86e4848 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,6 @@ 8.2.4 2.4.21 - 1.17.1 1.8.21 23.0.2 @@ -119,12 +118,6 @@ ${version.groovy} - - org.camunda.feel - feel-engine - ${version.feel} - - org.graalvm.sdk graal-sdk @@ -362,7 +355,7 @@ org.springframework.boot spring-boot-maven-plugin - 3.1.5 + ${version.spring.boot} diff --git a/src/test/java/io/zeebe/script/EvaluationFeelTest.java b/src/test/java/io/zeebe/script/EvaluationFeelTest.java deleted file mode 100644 index fb563b0..0000000 --- a/src/test/java/io/zeebe/script/EvaluationFeelTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright © 2017 camunda services GmbH (info@camunda.com) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.zeebe.script; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.entry; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -@Disabled -public class EvaluationFeelTest { - - private final ScriptEvaluator scriptEvaluator = new ScriptEvaluator(); - - @Test - public void shouldReturnNumber() { - - final Object result = - scriptEvaluator.evaluate("feel", "x * 2", Collections.singletonMap("x", 2)); - - assertThat(result).isEqualTo(4L); - } - - @Test - public void shouldReturnString() { - - final Object result = - scriptEvaluator.evaluate("feel", "\"url?id=\" + id", Collections.singletonMap("id", "123")); - - assertThat(result).isEqualTo("url?id=123"); - } - - @Test - public void shouldReturnList() { - @SuppressWarnings("unchecked") - final List result = - (List) - scriptEvaluator.evaluate("feel", "[1,2,3]", Collections.singletonMap("x", 3)); - - assertThat(result).hasSize(3).contains(1L, 2L, 3L); - } - - @Test - public void shouldReturnObject() { - @SuppressWarnings("unchecked") - final Map result = - (Map) - scriptEvaluator.evaluate( - "feel", "{foo:foo,bar:\"bar\"}", Collections.singletonMap("foo", 123)); - - assertThat(result).hasSize(2).contains(entry("foo", 123L), entry("bar", "bar")); - } - - @Test - public void shouldReturnResultOfFunction() { - - final Object result = - scriptEvaluator.evaluate( - "feel", "sum(items)", Collections.singletonMap("items", Arrays.asList(1, 2, 3))); - - assertThat(result).isEqualTo(6L); - } -}