diff --git a/pom.xml b/pom.xml
index 9555870d..f65aeadf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
17
1.16.1
- 2.7.8
+ 3.1.1
diff --git a/src/test/java/org/camunda/feel/playground/VersionApiTest.java b/src/test/java/org/camunda/feel/playground/VersionApiTest.java
index 9efc1537..614c444f 100644
--- a/src/test/java/org/camunda/feel/playground/VersionApiTest.java
+++ b/src/test/java/org/camunda/feel/playground/VersionApiTest.java
@@ -7,10 +7,12 @@
*/
package org.camunda.feel.playground;
+import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+import org.camunda.feel.FeelEngine;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
@@ -25,8 +27,13 @@ public final class VersionApiTest {
@Test
void shouldReturnVersion() throws Exception {
+ var expectedVersion = FeelEngine.class.getPackage().getImplementationVersion();
+ assertThat(expectedVersion)
+ .describedAs("The version should match the pattern `x.y.z`")
+ .matches("(\\d+).(\\d+).(\\d+)");
+
mvc.perform(get("/api/v1/version"))
.andExpect(status().isOk())
- .andExpect(content().json("{'feelEngineVersion': '1.16.0'}"));
+ .andExpect(content().json("{'feelEngineVersion': '" + expectedVersion + "'}"));
}
}