Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Make the FeelEngineBuilder available from Java/Kotlin #832

Merged
merged 9 commits into from
Aug 22, 2024
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,17 @@
<differenceType>7002</differenceType>
<method>scala.Function1 compose(scala.Function1)</method>
</ignored>
<!-- ignore changes in FeelEngineBuilder -->
<ignored>
<className>org/camunda/feel/api/FeelEngineBuilder</className>
<differenceType>7002</differenceType>
<method>scala.Function1 curried()</method>
</ignored>
<ignored>
<className>org/camunda/feel/api/FeelEngineBuilder</className>
<differenceType>7002</differenceType>
<method>scala.Function1 tupled()</method>
</ignored>
</ignored>
</configuration>
</plugin>
Expand Down
5 changes: 5 additions & 0 deletions src/main/scala/org/camunda/feel/api/FeelEngineBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ case class FeelEngineBuilder private (
)

}

object FeelEngineBuilder {

def create(): FeelEngineBuilder = FeelEngineBuilder()
vicmosin marked this conversation as resolved.
Show resolved Hide resolved
}
28 changes: 28 additions & 0 deletions src/test/scala/org/camunda/feel/api/FeelEngineBuilderTest.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; 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 org.camunda.feel.api

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

class FeelEngineBuilderTest extends AnyFlatSpec with Matchers {

"A FeelEngineBuilder" should "successfully build a FeelEngineApi instance" in {
val engine: FeelEngineApi = FeelEngineBuilder.create().build()
vicmosin marked this conversation as resolved.
Show resolved Hide resolved
engine should not be null
}
}